QLogValue3DAxisFormatter¶
The QLogValue3DAxisFormatter
class provides formatting rules for a logarithmic value axis. More…
Synopsis¶
Functions¶
def
autoSubGrid
()def
base
()def
setAutoSubGrid
(enabled)def
setBase
(base)def
setShowEdgeLabels
(enabled)def
showEdgeLabels
()
Signals¶
def
autoSubGridChanged
(enabled)def
baseChanged
(base)def
showEdgeLabelsChanged
(enabled)
Detailed Description¶
When a formatter is attached to a value axis, the axis range cannot include negative values or the zero.
See also
- class PySide6.QtDataVisualization.QLogValue3DAxisFormatter([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs a new logarithmic value 3D axis formatter with the optional parent parent
.
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.autoSubGrid()¶
- Return type
bool
This property holds Whether sub-grid positions are generated automatically..
If this property value is set to true
, the parent axis sub-segment count is ignored when calculating sub-grid line positions. The sub-grid positions are generated automatically according to the base
property value. The number of sub-grid lines is set to the base value minus one, rounded down. This property is ignored when the base value is zero. Defaults to true
.
See also
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.autoSubGridChanged(enabled)¶
- Parameters
enabled – bool
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.base()¶
- Return type
float
This property holds The base of the logarithm used to map axis values..
If the base is non-zero, the parent axis segment count will be ignored when the grid line and label positions are calculated. If you want the range to be divided into equal segments like a normal value axis, set this property value to zero.
The base has to be zero or a positive value and it cannot be equal to one. Defaults to ten.
See also
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.baseChanged(base)¶
- Parameters
base – float
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.setAutoSubGrid(enabled)¶
- Parameters
enabled – bool
This property holds Whether sub-grid positions are generated automatically..
If this property value is set to true
, the parent axis sub-segment count is ignored when calculating sub-grid line positions. The sub-grid positions are generated automatically according to the base
property value. The number of sub-grid lines is set to the base value minus one, rounded down. This property is ignored when the base value is zero. Defaults to true
.
See also
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.setBase(base)¶
- Parameters
base – float
This property holds The base of the logarithm used to map axis values..
If the base is non-zero, the parent axis segment count will be ignored when the grid line and label positions are calculated. If you want the range to be divided into equal segments like a normal value axis, set this property value to zero.
The base has to be zero or a positive value and it cannot be equal to one. Defaults to ten.
See also
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.setShowEdgeLabels(enabled)¶
- Parameters
enabled – bool
This property holds Whether the first and last label on the axis are visible..
When the base
property value is non-zero, the whole axis range is often not equally divided into segments. The first and last segments are often smaller than the other segments. In extreme cases, this can lead to overlapping labels on the first and last two grid lines. By setting this property to false
, you can suppress showing the minimum and maximum labels for the axis in cases where the segments do not exactly fit the axis. Defaults to true
.
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.showEdgeLabels()¶
- Return type
bool
This property holds Whether the first and last label on the axis are visible..
When the base
property value is non-zero, the whole axis range is often not equally divided into segments. The first and last segments are often smaller than the other segments. In extreme cases, this can lead to overlapping labels on the first and last two grid lines. By setting this property to false
, you can suppress showing the minimum and maximum labels for the axis in cases where the segments do not exactly fit the axis. Defaults to true
.
- PySide6.QtDataVisualization.QLogValue3DAxisFormatter.showEdgeLabelsChanged(enabled)¶
- Parameters
enabled – bool
© 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.