PySide6.QtGraphs.QAbstract3DAxis¶
- class QAbstract3DAxis¶
The
QAbstract3DAxis
class is a base class for the axes of a 3D graph. More…Inherited by:
QValue3DAxis
,QCategory3DAxis
Synopsis¶
Properties¶
autoAdjustRangeᅟ
- Whether the axis will automatically adjust the range so that all data fits in itlabelAutoAngleᅟ
- Maximum angle the labels can autorotate when the camera angle changeslabelsᅟ
- For the axislabelsVisibleᅟ
- Whether the axis labels are visible in the primary graph viewmaxᅟ
- Maximum value on the axisminᅟ
- Minimum value on the axisorientationᅟ
- Of the axistitleᅟ
- For the axistitleFixedᅟ
- Rotation of the axis titlestitleVisibleᅟ
- Whether the axis title is visible in the primary graph viewtypeᅟ
- Of the axis
Methods¶
def
isTitleFixed()
def
isTitleVisible()
def
labelAutoAngle()
def
labels()
def
labelsVisible()
def
max()
def
min()
def
orientation()
def
setLabels()
def
setMax()
def
setMin()
def
setRange()
def
setTitle()
def
setTitleFixed()
def
setTitleOffset()
def
title()
def
titleOffset()
def
type()
Signals¶
def
labelsChanged()
def
maxChanged()
def
minChanged()
def
rangeChanged()
def
titleChanged()
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¶
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 AxisOrientation¶
The orientation of the axis object.
Constant
Description
QAbstract3DAxis.AxisOrientation.None
QAbstract3DAxis.AxisOrientation.X
QAbstract3DAxis.AxisOrientation.Y
QAbstract3DAxis.AxisOrientation.Z
- class AxisType¶
The type of the axis object.
Constant
Description
QAbstract3DAxis.AxisType.None
QAbstract3DAxis.AxisType.Category
QAbstract3DAxis.AxisType.Value
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property autoAdjustRangeᅟ: bool¶
This property holds Whether the axis will automatically adjust the range so that all data fits in it..
See also
- Access functions:
- property labelAutoAngleᅟ: 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.
- Access functions:
- property 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.- Access functions:
Signal
labelsChanged()
- property labelsVisibleᅟ: bool¶
This property holds Whether the axis labels are visible in the primary graph view..
The default value is
true
.- Access functions:
- property 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.- Access functions:
Signal
maxChanged()
- property 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.- Access functions:
Signal
minChanged()
- property orientationᅟ: QAbstract3DAxis.AxisOrientation¶
This property holds The orientation of the axis..
The value is one of
AxisOrientation
values.- Access functions:
- property titleᅟ: str¶
This property holds The title for the axis..
See also
titleVisible
titleFixed
- Access functions:
Signal
titleChanged()
- property titleFixedᅟ: bool¶
This property holds The rotation of the axis titles..
If
false
, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. Iftrue
, axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if thelabelAutoAngle
property value is zero. Default value istrue
.See also
labelAutoAngle
title
titleVisible
- Access functions:
- property titleOffsetᅟ: float¶
The position of the axis title on the axis. The value must be between
-1.0f
and1.0f
See also
title
titleFixed
- Access functions:
- property titleVisibleᅟ: bool¶
This property holds Whether the axis title is visible in the primary graph view..
The default value is
false
.See also
title
titleFixed
- Access functions:
- property typeᅟ: QAbstract3DAxis.AxisType¶
This property holds The type of the axis..
The value is one of
AxisType
values.- Access functions:
- autoAdjustRangeChanged(autoAdjust)¶
- Parameters:
autoAdjust – bool
Notification signal of property
autoAdjustRangeᅟ
.- isAutoAdjustRange()¶
- Return type:
bool
Getter of property
autoAdjustRangeᅟ
.- isTitleFixed()¶
- Return type:
bool
Getter of property
titleFixedᅟ
.- isTitleVisible()¶
- Return type:
bool
Getter of property
titleVisibleᅟ
.- labelAutoAngle()¶
- Return type:
float
See also
Getter of property
labelAutoAngleᅟ
.- labelAutoAngleChanged(angle)¶
- Parameters:
angle – float
Notification signal of property
labelAutoAngleᅟ
.- labelVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
labelsVisibleᅟ
.- labels()¶
- Return type:
list of strings
See also
Getter of property
labelsᅟ
.- labelsChanged()¶
Notification signal of property
labelsᅟ
.- labelsVisible()¶
- Return type:
bool
See also
Getter of property
labelsVisibleᅟ
.Getter of property
maxᅟ
.- maxChanged(value)¶
- Parameters:
value – float
Notification signal of property
maxᅟ
.Getter of property
minᅟ
.- minChanged(value)¶
- Parameters:
value – float
Notification signal of property
minᅟ
.- orientation()¶
- Return type:
Getter of property
orientationᅟ
.- orientationChanged(orientation)¶
- Parameters:
orientation –
AxisOrientation
Notification signal of property
orientationᅟ
.- rangeChanged(min, max)¶
- Parameters:
min – float
max – float
Emits the minimum and maximum values of the range,
min
andmax
, when the range changes.- setAutoAdjustRange(autoAdjust)¶
- Parameters:
autoAdjust – bool
See also
Setter of property
autoAdjustRangeᅟ
.- setLabelAutoAngle(degree)¶
- Parameters:
degree – float
See also
Setter of property
labelAutoAngleᅟ
.Setter of property
labelsᅟ
.- setLabelsVisible(visible)¶
- Parameters:
visible – bool
See also
Setter of property
labelsVisibleᅟ
.Setter of property
maxᅟ
.Setter of property
minᅟ
.- setRange(min, max)¶
- Parameters:
min – float
max – float
Sets the value range of the axis from
min
tomax
. 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.Setter of property
titleᅟ
.- setTitleFixed(fixed)¶
- Parameters:
fixed – bool
See also
Setter of property
titleFixedᅟ
.- setTitleOffset(offset)¶
- Parameters:
offset – float
See also
Setter of property
titleOffsetᅟ
.- setTitleVisible(visible)¶
- Parameters:
visible – bool
See also
Setter of property
titleVisibleᅟ
.- title()¶
- Return type:
str
See also
Getter of property
titleᅟ
.- titleChanged(newTitle)¶
- Parameters:
newTitle – str
Notification signal of property
titleᅟ
.- titleFixedChanged(fixed)¶
- Parameters:
fixed – bool
Notification signal of property
titleFixedᅟ
.- titleOffset()¶
- Return type:
float
See also
Getter of property
titleOffsetᅟ
.- titleOffsetChanged(offset)¶
- Parameters:
offset – float
Notification signal of property
titleOffsetᅟ
.- titleVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
titleVisibleᅟ
.Getter of property
typeᅟ
.