pysme.gui package

Submodules

pysme.gui.plot_colors module

Defines the colors to use in plotting

class pysme.gui.plot_colors.PlotColors[source]

Bases: object

Define the colors to use in plotting

pysme.gui.plot_plotly module

Provide Plotting utility for Jupyter Notebook using Plot.ly Can also be used just for Plot.ly, which will then generated html files

class pysme.gui.plot_plotly.FinalPlot(sme, segment=0, orig=None, labels=None)[source]

Bases: object

Big plot that covers everything

add(x, y, label='')[source]

adds a scatter plot to the image, and makes the necessary changes in the slider

create_mask_points(x, y, mask, value)[source]

Creates the points that define the outer edge of the mask region

create_plot(current_segment)[source]

Generate the plot componentes (lines and masks) and line labels

on_toggle_click(change)[source]

Callback for mask mode selector buttons

save(_=None, filename='SME.html', **kwargs)[source]

save plot to html file

selection_fn(trace, points, selector)[source]

Callback for area selection, changes the mask depending on selected mode

set_mask_bad(_=None)[source]

Called by clicking the ‘bad’ mask button

set_mask_continuum(_=None)[source]

Called by clicking the ‘continuum’ mask button

set_mask_good(_=None)[source]

Called by clicking the ‘good’ mask button

set_mask_line(_=None)[source]

Called by clicking the ‘line’ mask button

set_mask_type(type)[source]

Changes the mask change mode and chooses the current interactive tool

shift_mask(x, mask)[source]

shift the edges of the mask to the bottom of the plot, so that the mask creates a shape with straight edges

show()[source]
class pysme.gui.plot_plotly.FitPlot(wave, spec)[source]

Bases: object

Plot the sme solve fit, as iterations pass along

add_synth(wave, synth, iteration=0)[source]

add a scatter plot to the plot

pysme.gui.plot_pyplot module

class pysme.gui.plot_pyplot.MaskPlot(sme, segment=0, axes=None, show=True)[source]

Bases: object

A plot that can be used to define the mask

connect_axes()[source]
goto_segment(segment)[source]
key_event(event)[source]
next_segment(_=None)[source]
plot(update=False)[source]
previous_segment(_=None)[source]
resize_event(event)[source]
section_continuum_callback(min, max)[source]
section_line_callback(min, max)[source]
section_select(min, max, mask_type)[source]
update(reset_view=False)[source]

Module contents