Class: QgsLinearlyInterpolatedDiagramRenderer

class qgis.core.QgsLinearlyInterpolatedDiagramRenderer

Bases: QgsDiagramRenderer

QgsLinearlyInterpolatedDiagramRenderer(other: QgsLinearlyInterpolatedDiagramRenderer) Copy constructor

Methods

classificationAttributeExpression

rtype

str

classificationAttributeIsExpression

rtype

bool

classificationField

Returns the field name used for interpolating the diagram size.

clone

rtype

QgsLinearlyInterpolatedDiagramRenderer

convertSizeToMapUnits

dataDefinedSizeLegend

Returns configuration of appearance of legend.

diagramAttributes

rtype

List[str]

diagramSettings

Returns list with all diagram settings in the renderer

diagramSize

param a0

dpiPaintDevice

legendItems

param nodeLayer

lowerSize

rtype

QSizeF

lowerValue

rtype

float

readXml

param elem

referencedFields

param context

rendererName

rtype

str

setClassificationAttributeExpression

param expression

setClassificationAttributeIsExpression

param isExpression

setClassificationField

Sets the field name used for interpolating the diagram size.

setDataDefinedSizeLegend

Configures appearance of legend.

setDiagramSettings

param s

setLowerSize

param s

setLowerValue

param val

setUpperSize

param s

setUpperValue

param val

upperSize

rtype

QSizeF

upperValue

rtype

float

writeXml

param layerElem

classificationAttributeExpression(self) → str
Return type

str

classificationAttributeIsExpression(self) → bool
Return type

bool

classificationField(self) → str

Returns the field name used for interpolating the diagram size.

New in version 3.0.

Return type

str

clone(self) → QgsLinearlyInterpolatedDiagramRenderer
Return type

QgsLinearlyInterpolatedDiagramRenderer

convertSizeToMapUnits()
dataDefinedSizeLegend(self) → QgsDataDefinedSizeLegend

Returns configuration of appearance of legend. Will return None if no configuration has been set.

New in version 3.0.

Return type

QgsDataDefinedSizeLegend

diagramAttributes(self) → List[str]
Return type

List[str]

diagramSettings(self) → List[QgsDiagramSettings]

Returns list with all diagram settings in the renderer

diagramSettings(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings) -> bool

Return type

List[QgsDiagramSettings]

diagramSize(self, a0: QgsFeature, c: QgsRenderContext) → QSizeF
Parameters
Return type

QSizeF

dpiPaintDevice()
legendItems(self, nodeLayer: QgsLayerTreeLayer) → List[QgsLayerTreeModelLegendNode]
Parameters

nodeLayer (QgsLayerTreeLayer) –

Return type

List[QgsLayerTreeModelLegendNode]

lowerSize(self) → QSizeF
Return type

QSizeF

lowerValue(self) → float
Return type

float

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters
referencedFields(self, context: QgsExpressionContext = QgsExpressionContext()) → Set[str]
Parameters

context (QgsExpressionContext = QgsExpressionContext()) –

Return type

Set[str]

rendererName(self) → str
Return type

str

setClassificationAttributeExpression(self, expression: str)
Parameters

expression (str) –

setClassificationAttributeIsExpression(self, isExpression: bool)
Parameters

isExpression (bool) –

setClassificationField(self, field: str)

Sets the field name used for interpolating the diagram size.

New in version 3.0.

Parameters

field (str) –

setDataDefinedSizeLegend(self, settings: QgsDataDefinedSizeLegend)

Configures appearance of legend. Takes ownership of the passed settings objects.

New in version 3.0.

Parameters

settings (QgsDataDefinedSizeLegend) –

setDiagramSettings(self, s: QgsDiagramSettings)
Parameters

s (QgsDiagramSettings) –

setLowerSize(self, s: QSizeF)
Parameters

s (QSizeF) –

setLowerValue(self, val: float)
Parameters

val (float) –

setUpperSize(self, s: QSizeF)
Parameters

s (QSizeF) –

setUpperValue(self, val: float)
Parameters

val (float) –

upperSize(self) → QSizeF
Return type

QSizeF

upperValue(self) → float
Return type

float

writeXml(self, layerElem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)
Parameters