QScatterDataItem#

The QScatterDataItem class provides a container for resolved data to be added to scatter graphs. More

Synopsis#

Functions#

Detailed Description#

A scatter data item holds the data for a single rendered item in a scatter graph. Scatter data proxies parse data into QScatterDataItem instances for visualization.

class PySide6.QtDataVisualization.QScatterDataItem#

PySide6.QtDataVisualization.QScatterDataItem(other)

PySide6.QtDataVisualization.QScatterDataItem(position)

PySide6.QtDataVisualization.QScatterDataItem(position, rotation)

Parameters

Constructs a scatter data item.

Constructs a copy of other.

Constructs a scatter data item at the position position.

Constructs a scatter data item at the position position with the rotation rotation.

PySide6.QtDataVisualization.QScatterDataItem.createExtraData()#
PySide6.QtDataVisualization.QScatterDataItem.position()#
Return type

PySide6.QtGui.QVector3D

Returns the position of this data item.

See also

setPosition()

PySide6.QtDataVisualization.QScatterDataItem.rotation()#
Return type

PySide6.QtGui.QQuaternion

Returns the rotation of this data item.

See also

setRotation()

PySide6.QtDataVisualization.QScatterDataItem.setPosition(pos)#
Parameters

posPySide6.QtGui.QVector3D

Sets the position pos for this data item.

See also

position()

PySide6.QtDataVisualization.QScatterDataItem.setRotation(rot)#
Parameters

rotPySide6.QtGui.QQuaternion

Sets the rotation rot for this data item. The value of rot should be a normalized QQuaternion . If the series also has rotation, item rotation is multiplied by it. Defaults to no rotation.

See also

rotation()

PySide6.QtDataVisualization.QScatterDataItem.setX(value)#
Parameters

value – float

Sets the x-coordinate of the item position to the value value.

See also

x()

PySide6.QtDataVisualization.QScatterDataItem.setY(value)#
Parameters

value – float

Sets the y-coordinate of the item position to the value value.

See also

y()

PySide6.QtDataVisualization.QScatterDataItem.setZ(value)#
Parameters

value – float

Sets the z-coordinate of the item position to the value value.

See also

z()

PySide6.QtDataVisualization.QScatterDataItem.x()#
Return type

float

Returns the x-coordinate of the position of this data item.

See also

setX()

PySide6.QtDataVisualization.QScatterDataItem.y()#
Return type

float

Returns the y-coordinate of the position of this data item.

See also

setY()

PySide6.QtDataVisualization.QScatterDataItem.z()#
Return type

float

Returns the z-coordinate of the position of this data item.

See also

setZ()