PySide6.QtGraphs.QLogValueAxis¶
- class QLogValueAxis¶
The
QLogValueAxisclass adds logarithmic values to a graph’s axes.Details
A logarithmic value axis can be set up to show an axis line with tick marks, grid lines, and shades. The values on the axis are drawn at the positions of tick marks.
Added in version 6.12.
Synopsis¶
Properties¶
labelFormatᅟ- Label format of the axislabelPostFormatᅟ- Label post format of the axislabelPrecisionᅟ- Maximum number of significant digits used for showing the labels. The default value is 6. Any negative precision is ignored in favor of the default, 6maxᅟ- Maximum value on the axisminᅟ- Minimum value on the axispanᅟ- Value of the axissubTickCountᅟ- Number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. Set the value to -1 and the number of subticks will be set equal to the closest integer value of the logarithm base. The default value is -1visualMaxᅟ- Visual maximum value of the axisvisualMinᅟ- Visual minimum value of the axiszoomᅟ- Value of the axis
Methods¶
def
__init__()def
base()def
labelFormat()def
labelPrecision()def
max()def
min()def
pan()def
setBase()def
setLabelFormat()def
setMax()def
setMin()def
setPan()def
setRange()def
setZoom()def
subTickCount()def
tickCount()def
visualMax()def
visualMin()def
zoom()
Signals¶
def
baseChanged()def
maxChanged()def
minChanged()def
panChanged()def
rangeChanged()def
zoomChanged()
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
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property baseᅟ: float¶
This base of the logarithm.
The value has to be greater than 0 and cannot equal 1. The default value is 10.0
- Access functions:
Signal
baseChanged()
- property labelFormatᅟ: str¶
This property holds The label format of the 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. Then the formatted string goes throughlabelPostFormat().The default value is empty, in which case ‘f’ format is used.
See also
asprintf()- Access functions:
- property labelPostFormatᅟ: str¶
This property holds The label post format of the axis..
The label first goes through
labelFormat()to format the value, then goes through this.The default value is “%1”.
See also
arg()- Access functions:
- property labelPrecisionᅟ: int¶
This property holds The maximum number of significant digits used for showing the labels. The default value is 6. Any negative precision is ignored in favor of the default, 6..
- 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. The default value is 10.0
- 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. The default value is 0.0
- Access functions:
Signal
minChanged()
- property panᅟ: float¶
This property holds The pan value of the axis..
The pan value moves the center of the axis without affecting intervals of grid and labels. The default value is 0.
- Access functions:
Signal
panChanged()
- property subTickCountᅟ: int¶
This property holds The number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. Set the value to -1 and the number of subticks will be set equal to the closest integer value of the logarithm base. The default value is -1..
- Access functions:
- property tickCountᅟ: int¶
This property holds the number of tick marks on the axis. This value is read-only.
- Access functions:
Signal
tickCountChanged()
- property visualMaxᅟ: float¶
This property holds The visual maximum value of the axis..
This property holds a a visual maximum axis value when axis has been panned or zoomed. The default value is
max()- Access functions:
Signal
visualMaxChanged()
- property visualMinᅟ: float¶
This property holds The visual minimum value of the axis..
This property holds a a visual minimum axis value when axis has been panned or zoomed. The default value is
min()- Access functions:
Signal
visualMinChanged()
- property zoomᅟ: float¶
This property holds The zoom value of the axis..
The zoom value enlarges or shrinks the axis and thus the graph without affecting intervals of grid and labels. The default value is 1.
- Access functions:
Signal
zoomChanged()
Constructs an axis object that is a child of
parent.Getter of property
baseᅟ.- baseChanged(base)¶
- Parameters:
base – float
Notification signal of property
baseᅟ.- labelFormat()¶
- Return type:
str
See also
Getter of property
labelFormatᅟ.- labelFormatChanged(format)¶
- Parameters:
format – str
Notification signal of property
labelFormatᅟ.- labelPostFormat()¶
- Return type:
str
See also
Getter of property
labelPostFormatᅟ.- labelPostFormatChanged(format)¶
- Parameters:
format – str
Notification signal of property
labelPostFormatᅟ.- labelPrecision()¶
- Return type:
int
See also
Getter of property
labelPrecisionᅟ.- labelPrecisionChanged(precision)¶
- Parameters:
precision – int
Notification signal of property
labelPrecisionᅟ.Getter of property
maxᅟ.- maxChanged(max)¶
- Parameters:
max – float
Notification signal of property
maxᅟ.Getter of property
minᅟ.- minChanged(min)¶
- Parameters:
min – float
Notification signal of property
minᅟ.Getter of property
panᅟ.- panChanged(pan)¶
- Parameters:
pan – float
Notification signal of property
panᅟ.- rangeChanged(min, max)¶
- Parameters:
min – float
max – float
Setter of property
baseᅟ.- setLabelFormat(format)¶
- Parameters:
format – str
See also
Setter of property
labelFormatᅟ.- setLabelPostFormat(format)¶
- Parameters:
format – str
See also
Setter of property
labelPostFormatᅟ.- setLabelPrecision(decimals)¶
- Parameters:
decimals – int
See also
Setter of property
labelPrecisionᅟ.Setter of property
maxᅟ.Setter of property
minᅟ.Setter of property
panᅟ.- setRange(min, max)¶
- Parameters:
min – float
max – float
Sets the range from
mintomaxon the axis. Ifminis greater thanmax, this function returns without making any changes.- setSubTickCount(count)¶
- Parameters:
count – int
See also
Setter of property
subTickCountᅟ.Setter of property
zoomᅟ.- subTickCount()¶
- Return type:
int
See also
Getter of property
subTickCountᅟ.- subTickCountChanged(subTickCount)¶
- Parameters:
subTickCount – int
Notification signal of property
subTickCountᅟ.- tickCount()¶
- Return type:
int
- tickCountChanged(tickCount)¶
- Parameters:
tickCount – int
Notification signal of property
tickCountᅟ.- visualMax()¶
- Return type:
float
Getter of property
visualMaxᅟ.- visualMaxChanged(visualMax)¶
- Parameters:
visualMax – float
Notification signal of property
visualMaxᅟ.- visualMin()¶
- Return type:
float
Getter of property
visualMinᅟ.- visualMinChanged(visualMin)¶
- Parameters:
visualMin – float
Notification signal of property
visualMinᅟ.Getter of property
zoomᅟ.- zoomChanged(zoom)¶
- Parameters:
zoom – float
Notification signal of property
zoomᅟ.