A PlotWidget with additional toolbars.
The PlotWindow is a subclass of PlotWidget. It provides the plot API fully defined in Plot.
Bases: silx.gui.plot.PlotWidget.PlotWidget
Qt Widget providing a 1D/2D plot area and additional tools.
This widgets inherits from PlotWidget and provides its plot API.
Initialiser parameters:
Parameters: |
|
---|
Return the current mask handled by maskToolsDockWidget.
Returns: | The array of the mask with dimension of the ‘active’ image. If there is no active image, an empty array is returned. |
---|---|
Return type: | 2D numpy.ndarray of uint8 |
Set the mask handled by maskToolsDockWidget.
If the provided mask has not the same dimension as the ‘active’ image, it will by cropped or padded.
Parameters: | mask (numpy.ndarray of uint8 of dimension 2, C-contiguous. Array of other types are converted.) – The array to use for the mask. |
---|---|
Returns: | True if success, False if failed |
Return a QMenu from the QAction of the PlotWindow.
Parameters: |
|
---|
QAction handling the IPython console activation.
By default, it is connected to a method that initializes the console widget the first time the user clicks the “Console” menu button. The following clicks, after initialization is done, will toggle the visibility of the console widget.
Return type: | QAction |
---|
Action toggling crosshair cursor mode.
Return type: | PlotActions.PlotAction |
---|
Action toggling pan with arrow keys.
Return type: | PlotActions.PlotAction |
---|
Action to toggle the X axis autoscale on zoom reset
Return type: | PlotActions.PlotAction |
---|
Action to toggle the Y axis autoscale on zoom reset
Return type: | PlotActions.PlotAction |
---|
Action to toggle logarithmic X axis
Return type: | PlotActions.PlotAction |
---|
Action to toggle logarithmic Y axis
Return type: | PlotActions.PlotAction |
---|
Action to toggle the grid visibility in the plot
Return type: | PlotActions.PlotAction |
---|
Action to change curve line and markers styles
Return type: | PlotActions.PlotAction |
---|
Action open a colormap dialog to change active image and default colormap.
Return type: | PlotActions.PlotAction |
---|
Button to toggle aspect ratio preservation
Return type: | PlotToolButtons.AspectToolButton |
---|
Action associated to keepDataAspectRatioButton. Use this to change the visibility of keepDataAspectRatioButton in the toolbar (See QToolBar.addWidget() documentation).
Return type: | PlotActions.PlotAction |
---|
Button to switch the Y axis orientation
Return type: | PlotToolButtons.YAxisOriginToolButton |
---|
Action associated to yAxisInvertedButton. Use this to change the visibility yAxisInvertedButton in the toolbar. (See QToolBar.addWidget() documentation).
Return type: | PlotActions.PlotAction |
---|
Action toggling the histogram intensity Plot widget
Return type: | PlotActions.PlotAction |
---|
Bases: silx.gui.plot.PlotWindow.PlotWindow
PlotWindow with tools specific for curves.
This widgets provides the plot API of PlotWidget.
Parameters: | parent – The parent of this widget |
---|
Bases: silx.gui.plot.PlotWindow.PlotWindow
PlotWindow with a toolbar specific for images.
This widgets provides the plot API of PlotWidget.
Parameters: | parent – The parent of this widget |
---|