artview.components.PlotDisplay

class artview.components.PlotDisplay(data, ydata=None, plot_type=None, title=None, xlabel=None, ylabel=None, name='PlotDisplay', parent=None)[source]

Bases: artview.core.core.Component

Class to create a display plot, using data and a key for plot type.

__init__(data, ydata=None, plot_type=None, title=None, xlabel=None, ylabel=None, name='PlotDisplay', parent=None)[source]

Initialize the class to create display.

Parameters:

data : data array

The data to be plotted.

[Optional] :

plot_type : str

Type of plot to produce (e.g. plot, barplot, etc).

name : string

Display window name.

parent : PyQt instance

Parent instance to associate to Display window. If None, then Qt owns, otherwise associated with parent PyQt instance.

Notes

This class records the selected button and passes the change value back to variable.

Methods

PlotDisplay.LaunchGUI
PlotDisplay.addButtons
PlotDisplay.cmapSelectCmd
PlotDisplay.setUILayout