PySide6.QtGraphs.QAbstract3DAxis

class QAbstract3DAxis

The QAbstract3DAxis class is a base class for the axes of a 3D graph. More

Inheritance diagram of PySide6.QtGraphs.QAbstract3DAxis

Inherited by: QValue3DAxis, QCategory3DAxis

Synopsis

Properties

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

This class specifies the enumerations, properties, and functions shared by graph axes. It should not be used directly, but one of its subclasses should be used instead.

class AxisOrientation

The orientation of the axis object.

Constant

Description

QAbstract3DAxis.AxisOrientation.None

QAbstract3DAxis.AxisOrientation.X

QAbstract3DAxis.AxisOrientation.Y

QAbstract3DAxis.AxisOrientation.Z

class AxisType

The type of the axis object.

Constant

Description

QAbstract3DAxis.AxisType.None

QAbstract3DAxis.AxisType.Category

QAbstract3DAxis.AxisType.Value

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property autoAdjustRangeᅟ: bool

This property holds Whether the axis will automatically adjust the range so that all data fits in it..

Access functions:
property labelAutoAngleᅟ: float

This property holds The maximum angle the labels can autorotate when the camera angle changes..

The angle can be between 0 and 90, inclusive. The default value is 0. If the value is 0, axis labels do not automatically rotate. If the value is greater than zero, labels attempt to orient themselves toward the camera, up to the specified angle.

Access functions:
property labelsᅟ: list of strings

This property holds The labels for the axis..

Note

Setting this property for QValue3DAxis does nothing, as it generates labels automatically.

Access functions:
property labelsVisibleᅟ: bool

This property holds Whether the axis labels are visible in the primary graph view..

The default value is true.

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.

Note

For QCategory3DAxis , specifies the index of the last row or column to show.

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.

Note

For QCategory3DAxis , specifies the index of the first row or column to show.

Access functions:
property orientationᅟ: QAbstract3DAxis.AxisOrientation

This property holds The orientation of the axis..

The value is one of AxisOrientation values.

Access functions:
property titleᅟ: str

This property holds The title for the axis..

See also

titleVisible titleFixed

Access functions:
property titleFixedᅟ: bool

This property holds The rotation of the axis titles..

If true, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If false, axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if the labelAutoAngle property value is zero. Default value is true.

See also

labelAutoAngle title titleVisible

Access functions:
property titleOffsetᅟ: float

The position of the axis title on the axis. The value must be between -1.0f and 1.0f

See also

title titleFixed

Access functions:
property titleVisibleᅟ: bool

This property holds Whether the axis title is visible in the primary graph view..

The default value is false.

See also

title titleFixed

Access functions:
property typeᅟ: QAbstract3DAxis.AxisType

This property holds The type of the axis..

The value is one of AxisType values.

Access functions:
autoAdjustRangeChanged(autoAdjust)
Parameters:

autoAdjust – bool

Notification signal of property autoAdjustRangeᅟ .

isAutoAdjustRange()
Return type:

bool

Getter of property autoAdjustRangeᅟ .

isTitleFixed()
Return type:

bool

Getter of property titleFixedᅟ .

isTitleVisible()
Return type:

bool

Getter of property titleVisibleᅟ .

labelAutoAngle()
Return type:

float

Getter of property labelAutoAngleᅟ .

labelAutoAngleChanged(angle)
Parameters:

angle – float

Notification signal of property labelAutoAngleᅟ .

labelVisibleChanged(visible)
Parameters:

visible – bool

Notification signal of property labelsVisibleᅟ .

labels()
Return type:

list of strings

See also

setLabels()

Getter of property labelsᅟ .

labelsChanged()

Notification signal of property labelsᅟ .

labelsVisible()
Return type:

bool

Getter of property labelsVisibleᅟ .

max()
Return type:

float

See also

setMax()

Getter of property maxᅟ .

maxChanged(value)
Parameters:

value – float

Notification signal of property maxᅟ .

min()
Return type:

float

See also

setMin()

Getter of property minᅟ .

minChanged(value)
Parameters:

value – float

Notification signal of property minᅟ .

orientation()
Return type:

AxisOrientation

Getter of property orientationᅟ .

orientationChanged(orientation)
Parameters:

orientationAxisOrientation

Notification signal of property orientationᅟ .

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

  • max – float

Emits the minimum and maximum values of the range, min and max, when the range changes.

setAutoAdjustRange(autoAdjust)
Parameters:

autoAdjust – bool

Setter of property autoAdjustRangeᅟ .

setLabelAutoAngle(degree)
Parameters:

degree – float

See also

labelAutoAngle()

Setter of property labelAutoAngleᅟ .

setLabels(labels)
Parameters:

labels – list of strings

See also

labels()

Setter of property labelsᅟ .

setLabelsVisible(visible)
Parameters:

visible – bool

See also

labelsVisible()

Setter of property labelsVisibleᅟ .

setMax(max)
Parameters:

max – float

See also

max()

Setter of property maxᅟ .

setMin(min)
Parameters:

min – float

See also

min()

Setter of property minᅟ .

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

  • max – float

Sets the value range of the axis from min to max. When setting the range, the maximum value is adjusted if necessary, to ensure that the range remains valid.

Note

For QCategory3DAxis , specifies the index range of rows or columns to show.

setTitle(title)
Parameters:

title – str

See also

title()

Setter of property titleᅟ .

setTitleFixed(fixed)
Parameters:

fixed – bool

See also

isTitleFixed()

Setter of property titleFixedᅟ .

setTitleOffset(offset)
Parameters:

offset – float

See also

titleOffset()

Setter of property titleOffsetᅟ .

setTitleVisible(visible)
Parameters:

visible – bool

See also

isTitleVisible()

Setter of property titleVisibleᅟ .

title()
Return type:

str

See also

setTitle()

Getter of property titleᅟ .

titleChanged(newTitle)
Parameters:

newTitle – str

Notification signal of property titleᅟ .

titleFixedChanged(fixed)
Parameters:

fixed – bool

Notification signal of property titleFixedᅟ .

titleOffset()
Return type:

float

See also

setTitleOffset()

Getter of property titleOffsetᅟ .

titleOffsetChanged(offset)
Parameters:

offset – float

Notification signal of property titleOffsetᅟ .

titleVisibleChanged(visible)
Parameters:

visible – bool

Notification signal of property titleVisibleᅟ .

type()
Return type:

AxisType

Getter of property typeᅟ .