The PlotAction is a base class used to define plot actions.
Plot actions serve to add menu items or toolbar items that are associated with a method that can interact with the associated PlotWidget.
For an introduction to creating custom plot actions, see Adding custom plot actions.
This module provides a set of QAction to use with PlotWidget.
The following QAction are available:
Base class for QAction that operates on a PlotWidget.
Parameters: |
|
---|
The PlotWidget this action group is controlling.
QAction controlling reset zoom on a PlotWidget.
Parameters: |
|
---|
QAction performing a zoom-in on a PlotWidget.
Parameters: |
|
---|
QAction performing a zoom-out on a PlotWidget.
Parameters: |
|
---|
QAction controlling X axis autoscale on a PlotWidget.
Parameters: |
|
---|
QAction controlling Y axis autoscale on a PlotWidget.
Parameters: |
|
---|
QAction controlling X axis log scale on a PlotWidget.
Parameters: |
|
---|
QAction controlling Y axis log scale on a PlotWidget.
Parameters: |
|
---|
QAction controlling grid mode on a PlotWidget.
Parameters: |
|
---|
QAction controlling curve style on a PlotWidget.
It changes the default line and markers style which updates all curves on the plot.
Parameters: |
|
---|
QAction opening a ColormapDialog to update the colormap.
Both the active image colormap and the default colormap are updated.
Parameters: |
|
---|
QAction controlling aspect ratio on a PlotWidget. :param plot: PlotWidget instance on which to operate :param parent: See QAction
QAction controlling Y orientation on a PlotWidget.
Parameters: |
|
---|
QAction for saving Plot content.
It opens a Save as... dialog.
Parameters: |
|
---|
QAction for printing the plot.
It opens a Print dialog.
Current implementation print a bitmap of the plot area and not vector graphics, so printing quality is not great.
Parameters: |
|
---|
The QPrinter instance used by the actions.
This is shared accross all instances of PrintAct
QAction to copy PlotWidget content to clipboard.
Parameters: |
|
---|
QAction toggling crosshair cursor on a PlotWidget.
Parameters: |
|
---|
Color used to draw the crosshair (str).
Width of the crosshair cursor (int).
Style of line of the cursor (str).
QAction toggling pan with arrow keys on a PlotWidget.
Parameters: |
|
---|
QAction to open a FitWidget and set its data to the active curve if any, or to the first curve..
Parameters: |
|
---|