Class representing a single plot curve. Instances of this class are created automatically as part of PlotDataItem; these rarely need to be instantiated directly.
Features:
Signals: | |
sigPlotChanged(self) | Emitted when the data being plotted has changed |
sigClicked(self) | Emitted when the curve is clicked |
Forwards all arguments to setData.
Some extra arguments are accepted as well:
Arguments: | |
parent | The parent GraphicsObject (optional) |
clickable | If True, the item will emit sigClicked when it is clicked on. Defaults to False. |
Set the brush used when filling the area under the curve
Sets whether the item responds to mouse clicks.
Arguments: | |
x, y | (numpy arrays) Data to show |
pen | Pen to use when drawing. Any single argument accepted by mkPen is allowed. |
shadowPen | Pen for drawing behind the primary pen. Usually this is used to emphasize the curve by providing a high-contrast border. Any single argument accepted by mkPen is allowed. |
fillLevel | (float or None) Fill the area ‘under’ the curve to fillLevel |
brush | QBrush to use when filling. Any single argument accepted by mkBrush is allowed. |
antialias | (bool) Whether to use antialiasing when drawing. This is disabled by default because it decreases performance. |
If non-keyword arguments are used, they will be interpreted as setData(y) for a single argument and setData(x, y) for two arguments.
Set the level filled to when filling under the curve
Set the pen used to draw the curve.
Set the shadow pen used to draw behind tyhe primary pen. This pen must have a larger width than the primary pen to be visible.