Class: QgsLineChartPlot¶
A simple line chart class.
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
Class Hierarchy¶
Base classes¶
Base class for 2-dimensional plot/chart/graphs with an X and Y axes. |
|
Base class for 2-dimensional plot/chart/graphs. |
|
Base class for plot/chart/graphs. |
Methods
Returns the line symbol for the series with matching index. |
|
Returns the line symbols list count. |
|
Returns the marker symbol for the series with matching index. |
|
Returns the line symbols list count. |
|
Sets the line symbol to use for the series with matching index. |
|
Sets the fill symbol to use for the series with matching index. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsLineChartPlot. See the FAQ for more details.
Initializes properties of this plot from an existing plot, transferring all applicable settings. |
Static Methods
Returns a new line chart. |
|
Returns a new data gatherer for a given line chart plot. |
- class qgis.core.QgsLineChartPlot[source]¶
Bases:
Qgs2DXyPlot- static create() QgsLineChartPlot | None[source]¶
Returns a new line chart.
- Return type:
- static createDataGatherer(plot: QgsPlot | None) QgsVectorLayerAbstractPlotDataGatherer | None[source]¶
Returns a new data gatherer for a given line chart
plot.- Parameters:
- Return type:
- virtual initFromPlot(self, plot: QgsPlot | None)[source]¶
Initializes properties of this plot from an existing
plot, transferring all applicable settings.
- lineSymbolAt(self, index: int) QgsLineSymbol | None[source]¶
Returns the line symbol for the series with matching
index.- Parameters:
index (int)
- Return type:
- markerSymbolAt(self, index: int) QgsMarkerSymbol | None[source]¶
Returns the marker symbol for the series with matching
index.- Parameters:
index (int)
- Return type:
- setLineSymbolAt(self, index: int, symbol: QgsLineSymbol | None)[source]¶
Sets the line
symbolto use for the series with matchingindex.- Parameters:
index (int)
symbol (Optional[QgsLineSymbol])
- setMarkerSymbolAt(self, index: int, symbol: QgsMarkerSymbol | None)[source]¶
Sets the fill
symbolto use for the series with matchingindex.- Parameters:
index (int)
symbol (Optional[QgsMarkerSymbol])