PySide6.QtGraphs.QScatterDataItem¶
- class QScatterDataItem¶
- The - QScatterDataItemclass provides a container for resolved data to be added to scatter graphs. More…- Synopsis¶- Methods¶- def - __init__()
- def - position()
- def - rotation()
- def - setPosition()
- def - setRotation()
- def - setX()
- def - setY()
- def - setZ()
- def - x()
- def - y()
- def - z()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- A scatter data item holds the data for a single rendered item in a scatter graph. Scatter data proxies parse data into - QScatterDataIteminstances for scatter graphs.- __init__()¶
 - Default constructor for scatter data item. - __init__(position)
- Parameters:
- position – - QVector3D
 
 - Constructs scatter data item with position - position.- __init__(position, rotation)
- Parameters:
- position – - QVector3D
- rotation – - QQuaternion
 
 
 - Constructs scatter data item with position - positionand rotation- rotation.- __init__(x, y, z)
- Parameters:
- x – float 
- y – float 
- z – float 
 
 
 - Constructs a scatter data item at the position specified by - x,- y, and- z.- Returns the position of this data item. - See also - rotation()¶
- Return type:
 
 - Returns the rotation of this data item. - See also - Sets the position - posfor this data item.- See also - setRotation(rot)¶
- Parameters:
- rot – - QQuaternion
 
 - Sets the rotation - rotfor this data item. The value of- rotshould be a normalized QQuaternion. If the series also has rotation, item rotation is multiplied by it. Defaults to no rotation.- See also - setX(value)¶
- Parameters:
- value – float 
 
 - Sets the x-coordinate of the item position to the value - value.- See also - setY(value)¶
- Parameters:
- value – float 
 
 - Sets the y-coordinate of the item position to the value - value.- See also - setZ(value)¶
- Parameters:
- value – float 
 
 - Sets the z-coordinate of the item position to the value - value.- See also - x()¶
- Return type:
- float 
 
 - Returns the x-coordinate of the position of this data item. - See also - y()¶
- Return type:
- float 
 
 - Returns the y-coordinate of the position of this data item. - See also - z()¶
- Return type:
- float 
 
 - Returns the z-coordinate of the position of this data item. - See also