Class: QgsVectorLayerXyPlotDataGatherer

An vector layer plot data gatherer class for XY series.

Added in version 4.0.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerXyPlotDataGatherer

Base classes

QgsVectorLayerAbstractPlotDataGatherer

An abstract vector layer plot data gatherer base class.

QgsTask

Abstract base class for long running background tasks.

QObject

Methods

setPredefinedCategories

Sets the predefined categories list that will be used to restrict the categories used when gathering the data.

setSeriesDetails

Sets the series details list that will be used to prepare the data being gathered.

class qgis.core.QgsVectorLayerXyPlotDataGatherer[source]

Bases: QgsVectorLayerAbstractPlotDataGatherer

__init__(xAxisType: Qgis.PlotAxisType = Qgis.PlotAxisType.Interval)

The vector layer XY plot data gatherer constructor.

Parameters:

xAxisType (Qgis.PlotAxisType = Qgis.PlotAxisType.Interval) – The X-axis type that will define what type of X values to gather.

class XySeriesDetails

Bases: object

XY series details

filterExpression
xExpression
yExpression
setPredefinedCategories(self, categories: Iterable[str | None])[source]

Sets the predefined categories list that will be used to restrict the categories used when gathering the data.

Note

This is only used when the gatherer’s X-axis type is set to categorical.

Parameters:

categories (Iterable[Optional[str]])

setSeriesDetails(self, details: Iterable[QgsVectorLayerXyPlotDataGatherer.XySeriesDetails])[source]

Sets the series details list that will be used to prepare the data being gathered.

Parameters:

details (Iterable[QgsVectorLayerXyPlotDataGatherer.XySeriesDetails])