hyperspy.drawing.signal1d module

class hyperspy.drawing.signal1d.Signal1DFigure(title='')

Bases: hyperspy.drawing.figure.BlittedFigure

add_line(line, ax='left')
create_axis()
create_right_axis()
plot(data_function_kwargs={}, **kwargs)
update()
class hyperspy.drawing.signal1d.Signal1DLine

Bases: object

Line that can be added to Signal1DFigure.

type

Select the line drawing style.

Type

{‘scatter’, ‘step’, ‘line’}

line_properties

Accepts a dictionary of valid (i.e. recognized by mpl.plot) containing valid line properties. In addition it understands the keyword type that can take the following values: {‘scatter’, ‘step’, ‘line’}

Type

dictionary

auto_update

If False, executing _auto_update_line does not update the line plot.

Type

bool

set_line_properties()

Enables setting the line_properties attribute using keyword arguments.

Raises

ValueError – If an invalid keyword value is passed to line_properties.

close()
property color
property get_complex
property line_properties
plot(data=1, data_function_kwargs={}, norm='linear')
set_line_properties(**kwargs)
property type
update(force_replot=False, render_figure=True)

Update the current spectrum figure