Class: QgsPlot

Base class for plot/chart/graphs.

Warning

This class is not considered stable API, and may change in future!

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPlot

Subclasses

Qgs2DPlot

Base class for 2-dimensional plot/chart/graphs.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsPlot. See the FAQ for more details.

readXml

Reads the plot's properties from an XML element.

type

Returns the plot's type.

writeXml

Writes the plot's properties into an XML element.

class qgis.core.QgsPlot[source]

Bases: object

virtual readXml(self, element: QDomElement, context: QgsReadWriteContext) bool[source]

Reads the plot’s properties from an XML element.

Parameters:
Return type:

bool

virtual type(self) str[source]

Returns the plot’s type.

Added in version 4.0.

Return type:

str

virtual writeXml(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) bool[source]

Writes the plot’s properties into an XML element.

Parameters:
Return type:

bool