Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.GUIPlot

Signature

class sdynpy.GUIPlot(*data_to_plot, **labeled_data_to_plot)

An iteractive plot window allowing users to visualize data

Methods

NameSummary
__init__Create a GUIPlot window to visualize data.
connect_callbacksConnects the callback functions to events
deselect_all_complex_types_exceptDeselects all complex types except the specified type.
selection_changedCalled when the selected functions is changed
set_imaginarySets the complex type to imaginary
set_magnitudeSets the complex type to magnitude
set_magnitude_phaseSets the complex type to magnitude and phase
set_phaseSets the complex type to phase
set_realSets the complex type to real
set_real_imagSets the complex type to real and imaginary
updateUpdates the figure in the GUIPlot
update_abscissa_logUpdates whether the abscissa should be plotted as log scale
update_checkboxDisables the update button if set to auto-update
update_data
update_ordinate_logUpdates whether the ordinate should be plotted as log scale

__init__

def sdynpy.GUIPlot.__init__(self, *data_to_plot, **labeled_data_to_plot)

Create a GUIPlot window to visualize data.

Multiple datasets can be overlaid by providing additional datasets as arguments. Position arguments will be labelled generically in the legend. Keyword arguments will be labelled with their keywords with _ replaced by .

Parameters

Returns

connect_callbacks

def sdynpy.GUIPlot.connect_callbacks(self)

Connects the callback functions to events

Returns

deselect_all_complex_types_except

def sdynpy.GUIPlot.deselect_all_complex_types_except(self, complex_type)

Deselects all complex types except the specified type.

Makes the checkboxes in the menu act like radiobuttons

Parameters

Returns

selection_changed

def sdynpy.GUIPlot.selection_changed(self)

Called when the selected functions is changed

set_imaginary

def sdynpy.GUIPlot.set_imaginary(self)

Sets the complex type to imaginary

set_magnitude

def sdynpy.GUIPlot.set_magnitude(self)

Sets the complex type to magnitude

set_magnitude_phase

def sdynpy.GUIPlot.set_magnitude_phase(self)

Sets the complex type to magnitude and phase

set_phase

def sdynpy.GUIPlot.set_phase(self)

Sets the complex type to phase

set_real

def sdynpy.GUIPlot.set_real(self)

Sets the complex type to real

set_real_imag

def sdynpy.GUIPlot.set_real_imag(self)

Sets the complex type to real and imaginary

update

def sdynpy.GUIPlot.update(self)

Updates the figure in the GUIPlot

Returns

update_abscissa_log

def sdynpy.GUIPlot.update_abscissa_log(self)

Updates whether the abscissa should be plotted as log scale

update_checkbox

def sdynpy.GUIPlot.update_checkbox(self)

Disables the update button if set to auto-update

update_data

def sdynpy.GUIPlot.update_data(self, *data_to_plot, **labeled_data_to_plot)

update_ordinate_log

def sdynpy.GUIPlot.update_ordinate_log(self)

Updates whether the ordinate should be plotted as log scale