Class: QgsPlotData¶
Encapsulates one or more plot series.
Warning
This class is not considered stable API, and may change in future!
Added in version 4.0.
List of all members, including inherited members
Methods
Adds a series to the plot data. |
|
Returns the name of the series' categories. |
|
Clears all series from the plot data. |
|
Returns the list of series forming the plot data. |
|
Sets the name of the series' categories. |
- class qgis.core.QgsPlotData[source]¶
Bases:
object- addSeries(self, series: QgsAbstractPlotSeries | None)[source]¶
Adds a series to the plot data.
Note
the series’ ownership is transferred to this object.
- Parameters:
series (Optional[QgsAbstractPlotSeries])
- categories(self) list[str][source]¶
Returns the name of the series’ categories.
- Return type:
list[str]
- series(self) list[QgsAbstractPlotSeries]¶
Returns the list of series forming the plot data.
Note
the series’ ownership is retained by this object.
- Return type:
list[QgsAbstractPlotSeries]