PlotWidget
: Base class for plotting widgets¶
The PlotWidget
is a Qt widget providing the plot API initially
provided in PyMca.
It is the basis of other plot widget, thus all plot widgets share the same API.
For an introduction and examples of the plot API, see Getting started with plot widgets.
PlotWidget
¶
Plot data¶
Those methods allow to add and update plotted data:
Get data¶
Those methods return objects providing access to plotted data:
Plot markers¶
It is also possible to add point or line markers to the plot:
Remove data from the plot¶
Title¶
Those methods handle the plot title:
Axes¶
Those two methods give access to items.Axis
which handle the limits, scales and labels of axis:
The following methods handle plot limits, aspect ratio, grid and axes display:
Reset zoom¶
The following methods allow to add margins around the data when performing a zoom reset:
Defaults¶
Those methods set-up default values for PlotWidget.addCurve()
and
PlotWidget.addImage()
:
Interaction¶
Those methods allow to change the interaction mode (e.g., drawing mode) of the plot and to toggle the use of a crosshair cursor: