PySide6.QtGraphs.QDateTimeAxis

class QDateTimeAxis

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

Details

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.

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

  • panᅟ - Value of 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ᅟ - Amount of major ticks are placed on an axis. If value is 0 or lower, axis will automatically calculate appropriate amount of ticks. The default value is 0

  • timeZoneᅟ - Time zone that will be used to display labels of the axis. The accepted values are based on IANA time zone IDs. The default time zone is UTC

  • visualMaxᅟ - Visual maximum value of the axis

  • visualMinᅟ - Visual minimum value of the axis

  • 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

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

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 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:
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 amount of major ticks are placed on an axis. If value is 0 or lower, axis will automatically calculate appropriate amount of ticks. The default value is 0..

Access functions:
property timeZoneᅟ: QTimeZone

This property holds The time zone that will be used to display labels of the axis. The accepted values are based on IANA time zone IDs. The default time zone is UTC..

Access functions:
property visualMaxᅟ: QDateTime

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

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:
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:
__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ᅟ .

pan()
Return type:

float

See also

setPan()

Getter of property panᅟ .

panChanged(newPan)
Parameters:

newPan – float

Notification signal of property panᅟ .

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ᅟ .

setPan(pan)
Parameters:

pan – float

See also

pan()

Setter of property panᅟ .

setSubTickCount(newSubTickCount)
Parameters:

newSubTickCount – int

See also

subTickCount()

Setter of property subTickCountᅟ .

setTickInterval(newTickInterval)
Parameters:

newTickInterval – float

See also

tickInterval()

Setter of property tickIntervalᅟ .

setTimeZone(zoneId)
Parameters:

zoneIdQTimeZone

See also

timeZone()

Setter of property timeZoneᅟ .

setZoom(zoom)
Parameters:

zoom – float

See also

zoom()

Setter of property zoomᅟ .

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ᅟ .

timeZone()
Return type:

QTimeZone

See also

setTimeZone()

Getter of property timeZoneᅟ .

timeZoneAsString()
Return type:

str

timeZoneChanged(newTimeZone)
Parameters:

newTimeZoneQTimeZone

Notification signal of property timeZoneᅟ .

timeZoneFromString(zoneId)
Parameters:

zoneId – str

Return type:

QTimeZone

visualMax()
Return type:

QDateTime

Getter of property visualMaxᅟ .

visualMaxChanged(newMax)
Parameters:

newMaxQDateTime

Notification signal of property visualMaxᅟ .

visualMin()
Return type:

QDateTime

Getter of property visualMinᅟ .

visualMinChanged(newMin)
Parameters:

newMinQDateTime

Notification signal of property visualMinᅟ .

zoom()
Return type:

float

See also

setZoom()

Getter of property zoomᅟ .

zoomChanged(newZoom)
Parameters:

newZoom – float

Notification signal of property zoomᅟ .