MatplotlibPlot

class sofia_redux.pipeline.gui.matplotlib_viewer.MatplotlibPlot(parent=None, title=None)[source]

Bases: QDialog

Show plot data in a separate window.

Build the matplotlib widget.

Parameters:
parentQWidget, optional

Parent widget

Methods Summary

clear()

plot(data)

Plot the data in the widget.

set_scroll([location])

Methods Documentation

clear()[source]
plot(data)[source]

Plot the data in the widget.

Each primary list element in data will appear in a separate subplot. The dictionary values should contain ‘args’ and ‘kwargs’ to pass to the plot function.

If the dictionary contains an ‘overplot’ key with a list of dicts containing their own ‘args’ values, the nested plots will be plotted on top of the primary plot. Overplots may specify a ‘plot_type’ which translates to matplotlib functions as follows:

  • vline : axes.axvline

  • plot : axes.plot

Primary plot kwargs are set in the axes (via axes.set); overplot kwargs are passed to the overplot function directly.

Parameters:
datalist of dict

Data sets to plot.

set_scroll(location='bottom')[source]