Plot Bases¶
AbstractBasePlotWidget¶
-
class
mesmerize.plotting.widgets.base.
_AbstractBasePlotWidget
[source]¶ -
abstract property
transmission
¶ The input transmission
- Return type
-
abstract
set_input
(transmission: mesmerize.analysis.data_types.Transmission)[source]¶ Set the input Transmission with data to plot
- Parameters
transmission – Input transmission
-
abstract
get_plot_opts
() → dict[source]¶ Package all necessary plot parameters that in combination with the transmission property are sufficient to restore the plot
-
abstract
set_plot_opts
(opts: dict)[source]¶ Set plot parameters from a dict in the format returned by get_plot_opts()
-
abstract property
BasePlotWidget¶
Inherit from this to create interactive plots that can be saved and restored.
-
class
mesmerize.plotting.widgets.base.
BasePlotWidget
[source]¶ Bases:
mesmerize.plotting.widgets.base._AbstractBasePlotWidget
Base for plot widgets.
Subclasses must define the class attribute “drop_opts” which is used to store a list of JSON incompatible keys returned by the get_plot_opts() method
-
block_signals_list
¶ List of QObjects included in dynamic signal blocking. Used for storing plot parameter widgets so that changing all of them quickly (like when restoring a plot) doesn’t cause the plot to constantly update.
-
property
transmission
¶ The input transmission
- Return type
-
set_input
(transmission: mesmerize.analysis.data_types.Transmission)[source]¶ Set the input Transmission with data to plot
- Parameters
transmission – Input transmission
-
fill_control_widget
(data_columns: list, categorical_columns: list, uuid_columns: list)[source]¶ Method for filling the control widget(s) when inputs are set. Must be implemented in subclass
-
classmethod
signal_blocker
(func)[source]¶ Use as a decorator. Block Qt signals from all QObjects instances in the block_signals_list
-