.. _data_navigation-line_spectrum:

data_navigation example code: line_spectrum.py
==============================================

[`source code <line_spectrum.py>`_]

::

    """Creates a line spectrum and plots it
    """
    
    s = Spectrum({'data' : np.random.random((100,1024))})
    s.plot()
    
    
    

Keywords: hyperspy, example, codex (see :ref:`how-to-search-examples`)