Class: QgsInterpolatedLineRenderer

class qgis.core.QgsInterpolatedLineRenderer

Bases: sip.wrapper

Represents a line with width and color varying depending on values.

New in version 3.14:

Methods

render

Render a line in the context between point1 and point2 with color and width that vary depending on value1 and value2

setInterpolatedColor

Sets the stroke color used to plot

setInterpolatedWidth

Sets the stroke width used to plot

setWidthUnit

Sets the unit of the stroke width

render(self, value1: float, value2: float, point1: QgsPointXY, point2: QgsPointXY, context: QgsRenderContext)

Render a line in the context between point1 and point2 with color and width that vary depending on value1 and value2

Parameters
setInterpolatedColor(self, strokeColoring: QgsInterpolatedLineColor)

Sets the stroke color used to plot

Parameters

strokeColoring (QgsInterpolatedLineColor) –

setInterpolatedWidth(self, strokeWidth: QgsInterpolatedLineWidth)

Sets the stroke width used to plot

Parameters

strokeWidth (QgsInterpolatedLineWidth) –

setWidthUnit(self, strokeWidthUnit: QgsUnitTypes.RenderUnit)

Sets the unit of the stroke width

Parameters

strokeWidthUnit (QgsUnitTypes.RenderUnit) –