PySide6.QtGraphs.QDateTimeAxis

class QDateTimeAxis

The QDateTimeAxis adds support for DateTime values to be added to a graph’s axis. More

Inheritance diagram of PySide6.QtGraphs.QDateTimeAxis

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-yy

  • maxᅟ - Maximum value on the axis

  • minᅟ - Minimum value on the axis

  • subTickCountᅟ - 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

  • tickIntervalᅟ - 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

Signals

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:
property maxᅟ: QDateTime

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:
property minᅟ: QDateTime

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:
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:
__init__([parent=None])
Parameters:

parentQObject

labelFormat()
Return type:

str

See also

setLabelFormat()

Getter of property labelFormatᅟ .

labelFormatChanged(format)
Parameters:

format – str

Notification signal of property labelFormatᅟ .

max()
Return type:

QDateTime

See also

setMax()

Getter of property maxᅟ .

maxChanged(max)
Parameters:

maxQDateTime

Notification signal of property maxᅟ .

min()
Return type:

QDateTime

See also

setMin()

Getter of property minᅟ .

minChanged(min)
Parameters:

minQDateTime

Notification signal of property minᅟ .

setLabelFormat(format)
Parameters:

format – str

See also

labelFormat()

Setter of property labelFormatᅟ .

setMax(max)
Parameters:

maxQDateTime

See also

max()

Setter of property maxᅟ .

setMin(min)
Parameters:

minQDateTime

See also

min()

Setter of property minᅟ .

setSubTickCount(newSubTickCount)
Parameters:

newSubTickCount – int

See also

subTickCount()

Setter of property subTickCountᅟ .

setTickInterval(newTickInterval)
Parameters:

newTickInterval – float

See also

tickInterval()

Setter of property tickIntervalᅟ .

subTickCount()
Return type:

int

Getter of property subTickCountᅟ .

subTickCountChanged()

Notification signal of property subTickCountᅟ .

tickInterval()
Return type:

float

Getter of property tickIntervalᅟ .

tickIntervalChanged()

Notification signal of property tickIntervalᅟ .