QAbstract3DAxis¶
The QAbstract3DAxis
class is a base class for the axes of a graph. More…
Inherited by: QValue3DAxis, QCategory3DAxis
Synopsis¶
Functions¶
def
isAutoAdjustRange
()def
isTitleFixed
()def
isTitleVisible
()def
labelAutoRotation
()def
labels
()def
max
()def
min
()def
orientation
()def
setAutoAdjustRange
(autoAdjust)def
setLabelAutoRotation
(angle)def
setLabels
(labels)def
setMax
(max)def
setMin
(min)def
setRange
(min, max)def
setTitle
(title)def
setTitleFixed
(fixed)def
setTitleVisible
(visible)def
title
()def
type
()
Signals¶
def
autoAdjustRangeChanged
(autoAdjust)def
labelAutoRotationChanged
(angle)def
labelsChanged
()def
maxChanged
(value)def
minChanged
(value)def
orientationChanged
(orientation)def
rangeChanged
(min, max)def
titleChanged
(newTitle)def
titleFixedChanged
(fixed)def
titleVisibilityChanged
(visible)
Detailed Description¶
This class specifies the enumerations, properties, and functions shared by graph axes. It should not be used directly, but one of its subclasses should be used instead.
See also
- class PySide6.QtDataVisualization.QAbstract3DAxis¶
- PySide6.QtDataVisualization.QAbstract3DAxis.AxisOrientation¶
The orientation of the axis object.
Constant
Description
QAbstract3DAxis.AxisOrientationNone
QAbstract3DAxis.AxisOrientationX
QAbstract3DAxis.AxisOrientationY
QAbstract3DAxis.AxisOrientationZ
- PySide6.QtDataVisualization.QAbstract3DAxis.AxisType¶
The type of the axis object.
Constant
Description
QAbstract3DAxis.AxisTypeNone
QAbstract3DAxis.AxisTypeCategory
QAbstract3DAxis.AxisTypeValue
- PySide6.QtDataVisualization.QAbstract3DAxis.autoAdjustRangeChanged(autoAdjust)¶
- Parameters
autoAdjust – bool
- PySide6.QtDataVisualization.QAbstract3DAxis.isAutoAdjustRange()¶
- Return type
bool
This property holds Whether the axis will automatically adjust the range so that all data fits in it..
See also
- PySide6.QtDataVisualization.QAbstract3DAxis.isTitleFixed()¶
- Return type
bool
This property holds The rotation of the axis titles..
If true
, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If false
, axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if the labelAutoRotation
property value is zero. Default value is true
.
See also
labelAutoRotation
title
titleVisible
- PySide6.QtDataVisualization.QAbstract3DAxis.isTitleVisible()¶
- Return type
bool
This property holds Whether the axis title is visible in the primary graph view..
The default value is false
.
See also
title
titleFixed
- PySide6.QtDataVisualization.QAbstract3DAxis.labelAutoRotation()¶
- Return type
float
This property holds The maximum angle the labels can autorotate when the camera angle changes..
The angle can be between 0 and 90, inclusive. The default value is 0. If the value is 0, axis labels do not automatically rotate. If the value is greater than zero, labels attempt to orient themselves toward the camera, up to the specified angle.
- PySide6.QtDataVisualization.QAbstract3DAxis.labelAutoRotationChanged(angle)¶
- Parameters
angle – float
- PySide6.QtDataVisualization.QAbstract3DAxis.labels()¶
- Return type
list of strings
This property holds The labels for the axis..
Note
Setting this property for QValue3DAxis
does nothing, as it generates labels automatically.
- PySide6.QtDataVisualization.QAbstract3DAxis.labelsChanged()¶
- PySide6.QtDataVisualization.QAbstract3DAxis.max()¶
- Return type
float
This property holds The maximum value on the axis..
When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid.
Note
For QCategory3DAxis
, specifies the index of the last row or column to show.
- PySide6.QtDataVisualization.QAbstract3DAxis.maxChanged(value)¶
- Parameters
value – float
- PySide6.QtDataVisualization.QAbstract3DAxis.min()¶
- Return type
float
This property holds The minimum value on the axis..
When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid.
Note
For QCategory3DAxis
, specifies the index of the first row or column to show.
- PySide6.QtDataVisualization.QAbstract3DAxis.minChanged(value)¶
- Parameters
value – float
- PySide6.QtDataVisualization.QAbstract3DAxis.orientation()¶
- Return type
This property holds The orientation of the axis..
The value is one of AxisOrientation
values.
- PySide6.QtDataVisualization.QAbstract3DAxis.orientationChanged(orientation)¶
- Parameters
orientation –
AxisOrientation
- PySide6.QtDataVisualization.QAbstract3DAxis.rangeChanged(min, max)¶
- Parameters
min – float
max – float
- PySide6.QtDataVisualization.QAbstract3DAxis.setAutoAdjustRange(autoAdjust)¶
- Parameters
autoAdjust – bool
This property holds Whether the axis will automatically adjust the range so that all data fits in it..
See also
- PySide6.QtDataVisualization.QAbstract3DAxis.setLabelAutoRotation(angle)¶
- Parameters
angle – float
This property holds The maximum angle the labels can autorotate when the camera angle changes..
The angle can be between 0 and 90, inclusive. The default value is 0. If the value is 0, axis labels do not automatically rotate. If the value is greater than zero, labels attempt to orient themselves toward the camera, up to the specified angle.
- PySide6.QtDataVisualization.QAbstract3DAxis.setLabels(labels)¶
- Parameters
labels – list of strings
This property holds The labels for the axis..
Note
Setting this property for QValue3DAxis
does nothing, as it generates labels automatically.
- PySide6.QtDataVisualization.QAbstract3DAxis.setMax(max)¶
- Parameters
max – float
This property holds The maximum value on the axis..
When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid.
Note
For QCategory3DAxis
, specifies the index of the last row or column to show.
- PySide6.QtDataVisualization.QAbstract3DAxis.setMin(min)¶
- Parameters
min – float
This property holds The minimum value on the axis..
When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid.
Note
For QCategory3DAxis
, specifies the index of the first row or column to show.
- PySide6.QtDataVisualization.QAbstract3DAxis.setRange(min, max)¶
- Parameters
min – float
max – float
Sets the value range of the axis from min
to max
. When setting the range, the maximum value is adjusted if necessary, to ensure that the range remains valid.
Note
For QCategory3DAxis
, specifies the index range of rows or columns to show.
- PySide6.QtDataVisualization.QAbstract3DAxis.setTitle(title)¶
- Parameters
title – str
This property holds The title for the axis..
See also
titleVisible
titleFixed
- PySide6.QtDataVisualization.QAbstract3DAxis.setTitleFixed(fixed)¶
- Parameters
fixed – bool
This property holds The rotation of the axis titles..
If true
, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If false
, axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if the labelAutoRotation
property value is zero. Default value is true
.
See also
labelAutoRotation
title
titleVisible
- PySide6.QtDataVisualization.QAbstract3DAxis.setTitleVisible(visible)¶
- Parameters
visible – bool
This property holds Whether the axis title is visible in the primary graph view..
The default value is false
.
See also
title
titleFixed
- PySide6.QtDataVisualization.QAbstract3DAxis.title()¶
- Return type
str
This property holds The title for the axis..
See also
titleVisible
titleFixed
- PySide6.QtDataVisualization.QAbstract3DAxis.titleChanged(newTitle)¶
- Parameters
newTitle – str
- PySide6.QtDataVisualization.QAbstract3DAxis.titleFixedChanged(fixed)¶
- Parameters
fixed – bool
- PySide6.QtDataVisualization.QAbstract3DAxis.titleVisibilityChanged(visible)¶
- Parameters
visible – bool
This property holds The type of the axis..
The value is one of AxisType
values.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.