QValue3DAxis#
The QValue3DAxis
class manipulates an axis of a graph. More…
Synopsis#
Properties#
formatter
- Axis formatter to be usedlabelFormat
- Label format to be used for the labels on this axisreversed
- Whether the axis is rendered in reversesegmentCount
- Number of segments on the axissubSegmentCount
- Number of subsegments inside each segment on the axis
Functions#
def
formatter
()def
labelFormat
()def
reversed
()def
segmentCount
()def
setFormatter
(formatter)def
setLabelFormat
(format)def
setReversed
(enable)def
setSegmentCount
(count)def
setSubSegmentCount
(count)def
subSegmentCount
()
Signals#
def
formatterChanged
(formatter)def
labelFormatChanged
(format)def
reversedChanged
(enable)def
segmentCountChanged
(count)def
subSegmentCountChanged
(count)
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 value axis can be given a range of values and segment and subsegment counts to divide the range into.
Labels are drawn between each segment. Grid lines are drawn between each segment and each subsegment.
Note
If visible, there will always be at least two grid lines and labels indicating the minimum and the maximum values of the range, as there is always at least one segment.
- class PySide6.QtDataVisualization.QValue3DAxis([parent=None])#
- Parameters:
parent –
PySide6.QtCore.QObject
Constructs QValue3DAxis
with the given parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtDataVisualization.QValue3DAxis.formatter: PySide6.QtDataVisualization.QValue3DAxisFormatter#
This property holds The axis formatter to be used..
Any existing formatter is deleted when a new formatter is set.
- Access functions:
formatter
()setFormatter
(formatter)Signal
formatterChanged
(formatter)
- property PᅟySide6.QtDataVisualization.QValue3DAxis.labelFormat: str#
This property holds The label format to be used for the labels on this axis..
The format string supports the following conversion specifiers, length modifiers, and flags provided by printf()
in the standard C++ library: d, i, o, x, X, f, F, e, E, g, G, c.
If locale
is anything else than "C"
, the supported specifiers are limited to: d, e, E, f, g, G, and i. Also, only the precision modifier is supported. The rest of the formatting comes from the default QLocale
of the application.
Usage example:
axis->setLabelFormat("%.2f mm");
- Access functions:
labelFormat
()setLabelFormat
(format)Signal
labelFormatChanged
(format)
- property PᅟySide6.QtDataVisualization.QValue3DAxis.reversed: bool#
This property holds Whether the axis is rendered in reverse..
If true
, the axis will be rendered in reverse, i.e. the positions of minimum and maximum values are swapped when the graph is rendered. This property doesn’t affect the actual minimum and maximum values of the axis.
- Access functions:
reversed
()setReversed
(enable)Signal
reversedChanged
(enable)
- property PᅟySide6.QtDataVisualization.QValue3DAxis.segmentCount: int#
This property holds The number of segments on the axis..
This indicates how many labels are drawn. The number of grid lines to be drawn is calculated with formula: segments * subsegments + 1
. The preset default is 5
. The value cannot be below 1
.
See also
- Access functions:
segmentCount
()setSegmentCount
(count)Signal
segmentCountChanged
(count)
- property PᅟySide6.QtDataVisualization.QValue3DAxis.subSegmentCount: int#
This property holds The number of subsegments inside each segment on the axis..
Grid lines are drawn between each subsegment, in addition to each segment. The preset default is 1
. The value cannot be below 1
.
See also
- Access functions:
setSubSegmentCount
(count)Signal
subSegmentCountChanged
(count)
- PySide6.QtDataVisualization.QValue3DAxis.formatter()#
- Return type:
See also
Getter of property formatter
.
- PySide6.QtDataVisualization.QValue3DAxis.formatterChanged(formatter)#
- Parameters:
formatter –
PySide6.QtDataVisualization.QValue3DAxisFormatter
Notification signal of property formatter
.
- PySide6.QtDataVisualization.QValue3DAxis.labelFormat()#
- Return type:
str
See also
Getter of property labelFormat
.
- PySide6.QtDataVisualization.QValue3DAxis.labelFormatChanged(format)#
- Parameters:
format – str
Notification signal of property labelFormat
.
- PySide6.QtDataVisualization.QValue3DAxis.reversed()#
- Return type:
bool
See also
Getter of property reversed
.
- PySide6.QtDataVisualization.QValue3DAxis.reversedChanged(enable)#
- Parameters:
enable – bool
Notification signal of property reversed
.
- PySide6.QtDataVisualization.QValue3DAxis.segmentCount()#
- Return type:
int
See also
Getter of property segmentCount
.
- PySide6.QtDataVisualization.QValue3DAxis.segmentCountChanged(count)#
- Parameters:
count – int
Notification signal of property segmentCount
.
- PySide6.QtDataVisualization.QValue3DAxis.setFormatter(formatter)#
- Parameters:
formatter –
PySide6.QtDataVisualization.QValue3DAxisFormatter
See also
Setter of property formatter
.
- PySide6.QtDataVisualization.QValue3DAxis.setLabelFormat(format)#
- Parameters:
format – str
See also
Setter of property labelFormat
.
- PySide6.QtDataVisualization.QValue3DAxis.setReversed(enable)#
- Parameters:
enable – bool
See also
Setter of property reversed
.
- PySide6.QtDataVisualization.QValue3DAxis.setSegmentCount(count)#
- Parameters:
count – int
See also
Setter of property segmentCount
.
- PySide6.QtDataVisualization.QValue3DAxis.setSubSegmentCount(count)#
- Parameters:
count – int
See also
Setter of property subSegmentCount
.
- PySide6.QtDataVisualization.QValue3DAxis.subSegmentCount()#
- Return type:
int
See also
Getter of property subSegmentCount
.
- PySide6.QtDataVisualization.QValue3DAxis.subSegmentCountChanged(count)#
- Parameters:
count – int
Notification signal of property subSegmentCount
.