Proportions¶
- class mesmerize.plotting.ProportionsWidget[source]¶
Bases:
mesmerize.plotting.widgets.base.BasePlotWidget
,mesmerize.pyqtgraphCore.widgets.MatplotlibWidget.MatplotlibWidget
- drop_opts = ['xs', 'ys']¶
Drop the ‘xs’ and ‘ys’ since they are pd.Series objects and not required for restoring the plot
- property ax: matplotlib.axes._axes.Axes¶
The Axes object for this plot
- Returns
The Axes object for this plot
- Return type
AXes
- set_input(*args, **kwds)¶
Set the input Transmission with data to plot
- Parameters
transmission – Input transmission
- get_plot_opts(drop: bool = False)[source]¶
Get the plot options
- Parameters
drop – Drop the ‘xs’ and ‘ys’ objects when saving the returned dict for saving to an hdf5 file
- set_plot_opts(*args, **kwds)¶
Must be implemented in subclass
- property transmission: mesmerize.analysis.data_types.Transmission¶
The input transmission
- Return type
- save_plot_dialog(path, *args)¶
Plot save dialog
- save_plot(path)¶
Save the plot as a Transmission in an HDF5 file. Plot parameters are stored as a JSON string within the HDF5 file. See Transmission.to_hdf5
- Parameters
path – Path to save the file to. For easy identification use “.ptrn” extension.
- open_plot_dialog(filepath, dirpath, *args, **kwargs)¶
Open plot dialog