QAbstractAxis

The QAbstractAxis class is a base class used for specialized axis classes. More

Inheritance diagram of PySide6.QtCharts.QAbstractAxis

Inherited by: QValueAxis, QCategoryAxis, QLogValueAxis, QDateTimeAxis, QBarCategoryAxis

Synopsis

Functions

Virtual functions

Detailed Description

Each series can be bound to one or more horizontal and vertical axes, but mixing axis types that would result in different domains is not supported, such as specifying QValueAxis and QLogValueAxis on the same orientation.

The properties and visibility of various axis elements, such as axis line, title, labels, grid lines, and shades, can be individually controlled.

class PySide6.QtCharts.QAbstractAxis
PySide6.QtCharts.QAbstractAxis.AxisType

This enum type specifies the type of the axis object.

Constant

Description

QAbstractAxis.AxisTypeNoAxis

QAbstractAxis.AxisTypeValue

QAbstractAxis.AxisTypeBarCategory

QAbstractAxis.AxisTypeCategory

QAbstractAxis.AxisTypeDateTime

QAbstractAxis.AxisTypeLogValue

PySide6.QtCharts.QAbstractAxis.alignment()
Return type

Alignment

PySide6.QtCharts.QAbstractAxis.colorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.gridLineColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.gridLineColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.gridLinePen()
Return type

PySide6.QtGui.QPen

Returns the pen used to draw the grid.

See also

setGridLinePen()

PySide6.QtCharts.QAbstractAxis.gridLinePenChanged(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.gridVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.hide()

Makes the axis, shades, labels, and grid lines invisible.

PySide6.QtCharts.QAbstractAxis.isGridLineVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.isLineVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.isMinorGridLineVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.isReverse()
Return type

bool

PySide6.QtCharts.QAbstractAxis.isTitleVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.isVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.labelsAngle()
Return type

int

See also

setLabelsAngle()

PySide6.QtCharts.QAbstractAxis.labelsAngleChanged(angle)
Parameters

angle – int

PySide6.QtCharts.QAbstractAxis.labelsBrush()
Return type

PySide6.QtGui.QBrush

Returns the brush used to draw labels.

See also

setLabelsBrush()

PySide6.QtCharts.QAbstractAxis.labelsBrushChanged(brush)
Parameters

brushPySide6.QtGui.QBrush

PySide6.QtCharts.QAbstractAxis.labelsColor()
Return type

PySide6.QtGui.QColor

See also

setLabelsColor()

PySide6.QtCharts.QAbstractAxis.labelsColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.labelsEditable()
Return type

bool

Returns true if axis labels are editable.

PySide6.QtCharts.QAbstractAxis.labelsEditableChanged(editable)
Parameters

editable – bool

PySide6.QtCharts.QAbstractAxis.labelsFont()
Return type

PySide6.QtGui.QFont

Returns the font used to draw labels.

See also

setLabelsFont()

PySide6.QtCharts.QAbstractAxis.labelsFontChanged(pen)
Parameters

penPySide6.QtGui.QFont

PySide6.QtCharts.QAbstractAxis.labelsVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.labelsVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.linePen()
Return type

PySide6.QtGui.QPen

Returns the pen used to draw the axis line and tick marks.

See also

setLinePen()

PySide6.QtCharts.QAbstractAxis.linePenChanged(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.linePenColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.lineVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.minorGridLineColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.minorGridLineColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.minorGridLinePen()
Return type

PySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.minorGridLinePenChanged(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.minorGridVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.orientation()
Return type

Orientation

Returns the orientation of the axis (vertical or horizontal).

PySide6.QtCharts.QAbstractAxis.reverseChanged(reverse)
Parameters

reverse – bool

PySide6.QtCharts.QAbstractAxis.setGridLineColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

gridLineColor()

PySide6.QtCharts.QAbstractAxis.setGridLinePen(pen)
Parameters

penPySide6.QtGui.QPen

Sets the pen used to draw the grid lines to pen.

See also

gridLinePen()

PySide6.QtCharts.QAbstractAxis.setGridLineVisible([visible=true])
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.setLabelsAngle(angle)
Parameters

angle – int

See also

labelsAngle()

PySide6.QtCharts.QAbstractAxis.setLabelsBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

Sets the brush used to draw labels to brush.

See also

labelsBrush()

PySide6.QtCharts.QAbstractAxis.setLabelsColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

labelsColor()

PySide6.QtCharts.QAbstractAxis.setLabelsEditable([editable=true])
Parameters

editable – bool

Sets axis labels editability to editable.

When the labels are editable the user will be able to change the range of the axis conveniently by editing any of the labels. This feature is only supported for the QValueAxis and the QDateTimeAxis .

By default, labels are not editable.

See also

labelsEditable()

PySide6.QtCharts.QAbstractAxis.setLabelsFont(font)
Parameters

fontPySide6.QtGui.QFont

Sets the font used to draw labels to font.

See also

labelsFont()

PySide6.QtCharts.QAbstractAxis.setLabelsVisible([visible=true])
Parameters

visible – bool

See also

labelsVisible()

PySide6.QtCharts.QAbstractAxis.setLinePen(pen)
Parameters

penPySide6.QtGui.QPen

Sets the pen used to draw the axis line and tick marks to pen.

See also

linePen()

PySide6.QtCharts.QAbstractAxis.setLinePenColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

linePenColor()

PySide6.QtCharts.QAbstractAxis.setLineVisible([visible=true])
Parameters

visible – bool

Determines whether the axis line and tick marks are visible.

See also

isLineVisible()

PySide6.QtCharts.QAbstractAxis.setMax(max)
Parameters

max – object

Sets the maximum value shown on the axis. Depending on the actual axis type, the max parameter is converted to the appropriate type of value. If the conversion is impossible, the function call does nothing.

PySide6.QtCharts.QAbstractAxis.setMin(min)
Parameters

min – object

Sets the minimum value shown on the axis. Depending on the actual axis type, the min parameter is converted to the appropriate type of value. If the conversion is impossible, the function call does nothing.

PySide6.QtCharts.QAbstractAxis.setMinorGridLineColor(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.setMinorGridLinePen(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.setMinorGridLineVisible([visible=true])
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.setRange(min, max)
Parameters
  • min – object

  • max – object

Sets the range shown on the axis. Depending on the actual axis type, the min and max parameters are converted to appropriate types of values. If the conversion is impossible, the function call does nothing.

PySide6.QtCharts.QAbstractAxis.setReverse([reverse=true])
Parameters

reverse – bool

See also

isReverse()

PySide6.QtCharts.QAbstractAxis.setShadesBorderColor(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.setShadesBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

Sets the brush used to draw shades to brush.

See also

shadesBrush()

PySide6.QtCharts.QAbstractAxis.setShadesColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

shadesColor()

PySide6.QtCharts.QAbstractAxis.setShadesPen(pen)
Parameters

penPySide6.QtGui.QPen

Sets the pen used to draw shades to pen.

See also

shadesPen()

PySide6.QtCharts.QAbstractAxis.setShadesVisible([visible=true])
Parameters

visible – bool

See also

shadesVisible()

PySide6.QtCharts.QAbstractAxis.setTitleBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

Sets the brush used to draw titles to brush.

See also

titleBrush()

PySide6.QtCharts.QAbstractAxis.setTitleFont(font)
Parameters

fontPySide6.QtGui.QFont

Sets the font used to draw titles to font.

See also

titleFont()

PySide6.QtCharts.QAbstractAxis.setTitleText(title)
Parameters

title – str

See also

titleText()

PySide6.QtCharts.QAbstractAxis.setTitleVisible([visible=true])
Parameters

visible – bool

See also

isTitleVisible()

PySide6.QtCharts.QAbstractAxis.setVisible([visible=true])
Parameters

visible – bool

Sets the visibility of the axis, shades, labels, and grid lines to visible.

See also

isVisible()

PySide6.QtCharts.QAbstractAxis.shadesBorderColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.shadesBorderColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.shadesBrush()
Return type

PySide6.QtGui.QBrush

Returns the brush used to draw shades.

See also

setShadesBrush()

PySide6.QtCharts.QAbstractAxis.shadesBrushChanged(brush)
Parameters

brushPySide6.QtGui.QBrush

PySide6.QtCharts.QAbstractAxis.shadesColor()
Return type

PySide6.QtGui.QColor

See also

setShadesColor()

PySide6.QtCharts.QAbstractAxis.shadesColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QAbstractAxis.shadesPen()
Return type

PySide6.QtGui.QPen

Returns the pen used to draw shades.

See also

setShadesPen()

PySide6.QtCharts.QAbstractAxis.shadesPenChanged(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QAbstractAxis.shadesVisible()
Return type

bool

PySide6.QtCharts.QAbstractAxis.shadesVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.show()

Makes the axis, shades, labels, and grid lines visible.

PySide6.QtCharts.QAbstractAxis.titleBrush()
Return type

PySide6.QtGui.QBrush

Returns the brush used to draw titles.

See also

setTitleBrush()

PySide6.QtCharts.QAbstractAxis.titleBrushChanged(brush)
Parameters

brushPySide6.QtGui.QBrush

PySide6.QtCharts.QAbstractAxis.titleFont()
Return type

PySide6.QtGui.QFont

Returns the font used to draw titles.

See also

setTitleFont()

PySide6.QtCharts.QAbstractAxis.titleFontChanged(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtCharts.QAbstractAxis.titleText()
Return type

str

See also

setTitleText()

PySide6.QtCharts.QAbstractAxis.titleTextChanged(title)
Parameters

title – str

PySide6.QtCharts.QAbstractAxis.titleVisibleChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QAbstractAxis.type()
Return type

AxisType

PySide6.QtCharts.QAbstractAxis.visibleChanged(visible)
Parameters

visible – bool