PySide6.QtGraphs.QDateTimeAxis¶
- class QDateTimeAxis¶
The
QDateTimeAxis
adds support for DateTime values to be added to a graph’s axis. More…Added in version 6.8.
Synopsis¶
Properties¶
labelFormatᅟ
- Format of the DateTime labels on the axis. The format property allows to signify the visual representation of the DateTime object, in days, months, and years. The default value is dd-MMMM-yymaxᅟ
- Maximum value on the axisminᅟ
- Minimum value on 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. The default value is 0tickIntervalᅟ
- Interval between dynamically placed tick marks and labels. The default value is 0, which means that intervals are automatically calculated based on the min and max range
Methods¶
def
__init__()
def
labelFormat()
def
max()
def
min()
def
setLabelFormat()
def
setMax()
def
setMin()
def
subTickCount()
def
tickInterval()
Signals¶
def
maxChanged()
def
minChanged()
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 DateTime Axis can be used to display DateTime representations with tick marks and grid lines. The DateTime items on the axis are displayed at the position of the ticks.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property labelFormatᅟ: str¶
This property holds The format of the DateTime labels on the axis. The format property allows to signify the visual representation of the DateTime object, in days, months, and years. The default value is dd-MMMM-yy..
- Access functions:
This property holds The maximum value on the axis.
This value can be lower or higher than the minimum. The DateTime is stored as UTC internally. The default value is new Date(1980,1,1)
- Access functions:
Signal
maxChanged()
This property holds The minimum value on the axis.
This value can be lower or higher than the maximum. The DateTime is stored as UTC internally. The default value is new Date(1970,1,1)
- Access functions:
Signal
minChanged()
- 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. The default value is 0..
- Access functions:
- property tickIntervalᅟ: float¶
This property holds The interval between dynamically placed tick marks and labels. The default value is 0, which means that intervals are automatically calculated based on the min and max range..
- Access functions:
- labelFormat()¶
- Return type:
str
See also
Getter of property
labelFormatᅟ
.- labelFormatChanged(format)¶
- Parameters:
format – str
Notification signal of property
labelFormatᅟ
.Getter of property
maxᅟ
.Notification signal of property
maxᅟ
.Getter of property
minᅟ
.Notification signal of property
minᅟ
.- setLabelFormat(format)¶
- Parameters:
format – str
See also
Setter of property
labelFormatᅟ
.Setter of property
maxᅟ
.Setter of property
minᅟ
.- setSubTickCount(newSubTickCount)¶
- Parameters:
newSubTickCount – int
See also
Setter of property
subTickCountᅟ
.- setTickInterval(newTickInterval)¶
- Parameters:
newTickInterval – float
See also
Setter of property
tickIntervalᅟ
.- subTickCount()¶
- Return type:
int
See also
Getter of property
subTickCountᅟ
.- subTickCountChanged()¶
Notification signal of property
subTickCountᅟ
.- tickInterval()¶
- Return type:
float
See also
Getter of property
tickIntervalᅟ
.- tickIntervalChanged()¶
Notification signal of property
tickIntervalᅟ
.