class QValueAxis

The QValueAxis class adds values to a graph’s axes. More

Inheritance diagram of PySide6.QtGraphs.QValueAxis

Inherited by: QCategoryAxis

Synopsis

Properties

Methods

Slots

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

class TickType

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

The default value is empty, in which case ‘f’ format is used.

See also

asprintf()

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:
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:
property minorTickCountᅟ: int
Access functions:
property tickAnchorᅟ: float

This property holds The base value where the dynamically placed tick marks and labels are started from. The default value is 0..

Access functions:
property tickCountᅟ: int
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:
property tickTypeᅟ: QValueAxis.TickType
Access functions:
__init__([parent=None])
Parameters:

parentQObject

Constructs an axis object that is a child of parent.

applyNiceNumbers()
labelFormat()
Return type:

str

See also

setLabelFormat()

Getter of property labelFormatᅟ .

labelFormatChanged(format)
Parameters:

format – str

Notification signal of property labelFormatᅟ .

max()
Return type:

float

See also

setMax()

Getter of property maxᅟ .

maxChanged(max)
Parameters:

max – float

Notification signal of property maxᅟ .

min()
Return type:

float

See also

setMin()

Getter of property minᅟ .

minChanged(min)
Parameters:

min – float

Notification signal of property minᅟ .

minorTickCount()
Return type:

int

Getter of property minorTickCountᅟ .

minorTickCountChanged(tickCount)
Parameters:

tickCount – int

Notification signal of property minorTickCountᅟ .

rangeChanged(min, max)
Parameters:
  • min – float

  • max – float

setLabelFormat(format)
Parameters:

format – str

See also

labelFormat()

Setter of property labelFormatᅟ .

setMax(max)
Parameters:

max – float

See also

max()

Setter of property maxᅟ .

setMin(min)
Parameters:

min – float

See also

min()

Setter of property minᅟ .

setMinorTickCount(count)
Parameters:

count – int

Setter of property minorTickCountᅟ .

setRange(min, max)
Parameters:
  • min – float

  • max – float

Sets the range from min to max on the axis. If min is greater than max, this function returns without making any changes.

setTickAnchor(anchor)
Parameters:

anchor – float

See also

tickAnchor()

Setter of property tickAnchorᅟ .

setTickCount(count)
Parameters:

count – int

Setter of property tickCountᅟ .

setTickInterval(insterval)
Parameters:

insterval – float

See also

tickInterval()

Setter of property tickIntervalᅟ .

setTickType(type)
Parameters:

typeTickType

Setter of property tickTypeᅟ .

tickAnchor()
Return type:

float

See also

setTickAnchor()

Getter of property tickAnchorᅟ .

tickAnchorChanged(anchor)
Parameters:

anchor – float

Notification signal of property tickAnchorᅟ .

tickCount()
Return type:

int

Getter of property tickCountᅟ .

tickCountChanged(tickCount)
Parameters:

tickCount – int

Notification signal of property tickCountᅟ .

tickInterval()
Return type:

float

Getter of property tickIntervalᅟ .

tickIntervalChanged(interval)
Parameters:

interval – float

Notification signal of property tickIntervalᅟ .

tickType()
Return type:

TickType

Getter of property tickTypeᅟ .

tickTypeChanged(type)
Parameters:

typeTickType

Notification signal of property tickTypeᅟ .