QAbstract3DAxis#

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

Inheritance diagram of PySide6.QtDataVisualization.QAbstract3DAxis

Inherited by: QValue3DAxis, QCategory3DAxis

Synopsis#

Properties#

  • autoAdjustRange - Whether the axis will automatically adjust the range so that all data fits in it

  • labelAutoRotation - Maximum angle the labels can autorotate when the camera angle changes

  • labels - For the axis

  • max - Maximum value on the axis

  • min - Minimum value on the axis

  • orientation - Of the axis

  • title - For the axis

  • titleFixed - Rotation of the axis titles

  • titleVisible - Whether the axis title is visible in the primary graph view

  • type - Of the axis

Functions#

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 PySide6.QtDataVisualization.QAbstract3DAxis#

Note

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

property PᅟySide6.QtDataVisualization.QAbstract3DAxis.autoAdjustRange: bool#

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

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DAxis.labelAutoRotation: 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 PᅟySide6.QtDataVisualization.QAbstract3DAxis.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 PᅟySide6.QtDataVisualization.QAbstract3DAxis.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 PᅟySide6.QtDataVisualization.QAbstract3DAxis.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 PᅟySide6.QtDataVisualization.QAbstract3DAxis.orientation: AxisOrientation#

This property holds The orientation of the axis..

The value is one of AxisOrientation values.

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DAxis.title: str#

This property holds The title for the axis..

See also

titleVisible titleFixed

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DAxis.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 labelAutoRotation property value is zero. Default value is true.

See also

labelAutoRotation title titleVisible

Access functions:
property PᅟySide6.QtDataVisualization.QAbstract3DAxis.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 PᅟySide6.QtDataVisualization.QAbstract3DAxis.type: AxisType#

This property holds The type of the axis..

The value is one of AxisType values.

Access functions:
PySide6.QtDataVisualization.QAbstract3DAxis.AxisOrientation#

The orientation of the axis object.

Constant

Description

QAbstract3DAxis.AxisOrientationNone

QAbstract3DAxis.AxisOrientationX

QAbstract3DAxis.AxisOrientationY

QAbstract3DAxis.AxisOrientationZ

PySide6.QtDataVisualization.QAbstract3DAxis.AxisType#

The type of the axis object.

Constant

Description

QAbstract3DAxis.AxisTypeNone

QAbstract3DAxis.AxisTypeCategory

QAbstract3DAxis.AxisTypeValue

PySide6.QtDataVisualization.QAbstract3DAxis.autoAdjustRangeChanged(autoAdjust)#
Parameters:

autoAdjust – bool

Notification signal of property autoAdjustRange .

PySide6.QtDataVisualization.QAbstract3DAxis.isAutoAdjustRange()#
Return type:

bool

Getter of property autoAdjustRange .

PySide6.QtDataVisualization.QAbstract3DAxis.isTitleFixed()#
Return type:

bool

Getter of property titleFixed .

PySide6.QtDataVisualization.QAbstract3DAxis.isTitleVisible()#
Return type:

bool

Getter of property titleVisible .

PySide6.QtDataVisualization.QAbstract3DAxis.labelAutoRotation()#
Return type:

float

Getter of property labelAutoRotation .

PySide6.QtDataVisualization.QAbstract3DAxis.labelAutoRotationChanged(angle)#
Parameters:

angle – float

Notification signal of property labelAutoRotation .

PySide6.QtDataVisualization.QAbstract3DAxis.labels()#
Return type:

list of strings

See also

setLabels()

Getter of property labels .

PySide6.QtDataVisualization.QAbstract3DAxis.labelsChanged()#

Notification signal of property labels .

PySide6.QtDataVisualization.QAbstract3DAxis.max()#
Return type:

float

See also

setMax()

Getter of property max .

PySide6.QtDataVisualization.QAbstract3DAxis.maxChanged(value)#
Parameters:

value – float

Notification signal of property max .

PySide6.QtDataVisualization.QAbstract3DAxis.min()#
Return type:

float

See also

setMin()

Getter of property min .

PySide6.QtDataVisualization.QAbstract3DAxis.minChanged(value)#
Parameters:

value – float

Notification signal of property min .

PySide6.QtDataVisualization.QAbstract3DAxis.orientation()#
Return type:

AxisOrientation

Getter of property orientation .

PySide6.QtDataVisualization.QAbstract3DAxis.orientationChanged(orientation)#
Parameters:

orientationAxisOrientation

Notification signal of property orientation .

PySide6.QtDataVisualization.QAbstract3DAxis.rangeChanged(min, max)#
Parameters:
  • min – float

  • max – float

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

PySide6.QtDataVisualization.QAbstract3DAxis.setAutoAdjustRange(autoAdjust)#
Parameters:

autoAdjust – bool

Setter of property autoAdjustRange .

PySide6.QtDataVisualization.QAbstract3DAxis.setLabelAutoRotation(angle)#
Parameters:

angle – float

Setter of property labelAutoRotation .

PySide6.QtDataVisualization.QAbstract3DAxis.setLabels(labels)#
Parameters:

labels – list of strings

See also

labels()

Setter of property labels .

PySide6.QtDataVisualization.QAbstract3DAxis.setMax(max)#
Parameters:

max – float

See also

max()

Setter of property max .

PySide6.QtDataVisualization.QAbstract3DAxis.setMin(min)#
Parameters:

min – float

See also

min()

Setter of property min .

PySide6.QtDataVisualization.QAbstract3DAxis.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.

PySide6.QtDataVisualization.QAbstract3DAxis.setTitle(title)#
Parameters:

title – str

See also

title()

Setter of property title .

PySide6.QtDataVisualization.QAbstract3DAxis.setTitleFixed(fixed)#
Parameters:

fixed – bool

See also

isTitleFixed()

Setter of property titleFixed .

PySide6.QtDataVisualization.QAbstract3DAxis.setTitleVisible(visible)#
Parameters:

visible – bool

See also

isTitleVisible()

Setter of property titleVisible .

PySide6.QtDataVisualization.QAbstract3DAxis.title()#
Return type:

str

See also

setTitle()

Getter of property title .

PySide6.QtDataVisualization.QAbstract3DAxis.titleChanged(newTitle)#
Parameters:

newTitle – str

Notification signal of property title .

PySide6.QtDataVisualization.QAbstract3DAxis.titleFixedChanged(fixed)#
Parameters:

fixed – bool

Notification signal of property titleFixed .

PySide6.QtDataVisualization.QAbstract3DAxis.titleVisibilityChanged(visible)#
Parameters:

visible – bool

Notification signal of property titleVisible .

PySide6.QtDataVisualization.QAbstract3DAxis.type()#
Return type:

AxisType

Getter of property type .