- class QAbstractAxis¶
The
QAbstractAxis
class is a base class used for specialized axis classes. More…Inherited by:
QValueAxis
,QDateTimeAxis
,QBarCategoryAxis
,QLogValueAxis
,QColorAxis
,QCategoryAxis
Synopsis¶
Properties¶
gridVisibleᅟ
- Visibility of the grid lines. By default, the value is truelabelsAngleᅟ
- Angle of the axis labels in degreeslabelsVisibleᅟ
- Whether axis labels are visible. By default, the value is truelineVisibleᅟ
- Visibility of the axis line. By default, the value is truetitleFontᅟ
- Font of the title of the axistitleTextᅟ
- Title of the axistitleVisibleᅟ
- Visibility of the axis titlevisibleᅟ
- Visibility of the axis. By default, the value is true
Methods¶
def
alignment()
def
gridLineColor()
def
gridLinePen()
def
hide()
def
isLineVisible()
def
isReverse()
def
isTitleVisible()
def
isVisible()
def
labelsAngle()
def
labelsBrush()
def
labelsColor()
def
labelsEditable()
def
labelsFont()
def
labelsVisible()
def
linePen()
def
linePenColor()
def
orientation()
def
setGridLinePen()
def
setLabelsAngle()
def
setLabelsBrush()
def
setLabelsColor()
def
setLabelsFont()
def
setLinePen()
def
setLineVisible()
def
setMax()
def
setMin()
def
setRange()
def
setReverse()
def
setShadesBrush()
def
setShadesColor()
def
setShadesPen()
def
setTitleBrush()
def
setTitleFont()
def
setTitleText()
def
setVisible()
def
shadesBrush()
def
shadesColor()
def
shadesPen()
def
shadesVisible()
def
show()
def
titleBrush()
def
titleFont()
def
titleText()
def
truncateLabels()
Signals¶
def
colorChanged()
def
linePenChanged()
def
reverseChanged()
def
visibleChanged()
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¶
Each series can be bound to only one horizontal and vertical axis.
The properties and visibility of various axis elements, such as axis line, title, labels, and grid lines, can be individually controlled.
- class AxisType¶
This enum type specifies the type of the axis object.
Constant
Description
QAbstractAxis.AxisType.Value
QAbstractAxis.AxisType.BarCategory
QAbstractAxis.AxisType.DateTime
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property alignmentᅟ: Combination of Qt.AlignmentFlag¶
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- property gridVisibleᅟ: bool¶
This property holds The visibility of the grid lines. By default, the value is
true
..- Access functions:
- property labelsAngleᅟ: int¶
This property holds The angle of the axis labels in degrees..
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- property labelsTruncatedᅟ: bool¶
- Access functions:
- property labelsVisibleᅟ: bool¶
This property holds Whether axis labels are visible. By default, the value is
true
..- Access functions:
- Access functions:
- property lineVisibleᅟ: bool¶
This property holds The visibility of the axis line. By default, the value is
true
..- Access functions:
- Access functions:
- Access functions:
- property minorGridVisibleᅟ: bool¶
- Access functions:
- property orientationᅟ: Qt.Orientation¶
- Access functions:
- property reverseᅟ: bool¶
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- property shadesVisibleᅟ: bool¶
- Access functions:
- Access functions:
This property holds The font of the title of the axis..
- Access functions:
- property titleTextᅟ: str¶
This property holds The title of the axis..
Empty by default. Axis titles support HTML formatting.
- Access functions:
- property titleVisibleᅟ: bool¶
This property holds The visibility of the axis title..
By default, the value is
true
.- Access functions:
- property truncateLabelsᅟ: bool¶
- Access functions:
- property visibleᅟ: bool¶
This property holds The visibility of the axis. By default, the value is
true
..- Access functions:
- alignment()¶
- Return type:
Combination of
AlignmentFlag
Getter of property
alignmentᅟ
.Notification signal of property
colorᅟ
.Getter of property
gridLineColorᅟ
.Notification signal of property
gridLineColorᅟ
.Getter of property
gridLinePenᅟ
.Notification signal of property
gridLinePenᅟ
.- gridVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
gridVisibleᅟ
.- hide()¶
Makes the axis, labels, and grid lines invisible.
- isGridLineVisible()¶
- Return type:
bool
Getter of property
gridVisibleᅟ
.- isLineVisible()¶
- Return type:
bool
Getter of property
lineVisibleᅟ
.- isMinorGridLineVisible()¶
- Return type:
bool
Getter of property
minorGridVisibleᅟ
.- isReverse()¶
- Return type:
bool
Getter of property
reverseᅟ
.- isTitleVisible()¶
- Return type:
bool
Getter of property
titleVisibleᅟ
.- isVisible()¶
- Return type:
bool
Getter of property
visibleᅟ
.- labelsAngle()¶
- Return type:
int
See also
Getter of property
labelsAngleᅟ
.- labelsAngleChanged(angle)¶
- Parameters:
angle – int
Notification signal of property
labelsAngleᅟ
.Getter of property
labelsBrushᅟ
.Notification signal of property
labelsBrushᅟ
.Getter of property
labelsColorᅟ
.Notification signal of property
labelsColorᅟ
.- labelsEditable()¶
- Return type:
bool
- labelsEditableChanged(editable)¶
- Parameters:
editable – bool
Getter of property
labelsFontᅟ
.Notification signal of property
labelsFontᅟ
.- labelsTruncated()¶
- Return type:
bool
Getter of property
labelsTruncatedᅟ
.- labelsTruncatedChanged(labelsTruncated)¶
- Parameters:
labelsTruncated – bool
Notification signal of property
labelsTruncatedᅟ
.- labelsVisible()¶
- Return type:
bool
See also
Getter of property
labelsVisibleᅟ
.- labelsVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
labelsVisibleᅟ
.Getter of property
linePenᅟ
.Notification signal of property
linePenᅟ
.Getter of property
colorᅟ
.- lineVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
lineVisibleᅟ
.Getter of property
minorGridLineColorᅟ
.Notification signal of property
minorGridLineColorᅟ
.Getter of property
minorGridLinePenᅟ
.Notification signal of property
minorGridLinePenᅟ
.- minorGridVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
minorGridVisibleᅟ
.- orientation()¶
- Return type:
Getter of property
orientationᅟ
.- reverseChanged(reverse)¶
- Parameters:
reverse – bool
Notification signal of property
reverseᅟ
.Setter of property
gridLineColorᅟ
.Setter of property
gridLinePenᅟ
.- setGridLineVisible([visible=true])¶
- Parameters:
visible – bool
Setter of property
gridVisibleᅟ
.- setLabelsAngle(angle)¶
- Parameters:
angle – int
See also
Setter of property
labelsAngleᅟ
.Setter of property
labelsBrushᅟ
.Setter of property
labelsColorᅟ
.- setLabelsEditable([editable=true])¶
- Parameters:
editable – bool
Setter of property
labelsFontᅟ
.- setLabelsVisible([visible=true])¶
- Parameters:
visible – bool
See also
Setter of property
labelsVisibleᅟ
.Setter of property
linePenᅟ
.Setter of property
colorᅟ
.- setLineVisible([visible=true])¶
- Parameters:
visible – bool
Determines whether the axis line and tick marks are
visible
.See also
Setter of property
lineVisibleᅟ
.- 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.- 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.Setter of property
minorGridLineColorᅟ
.Setter of property
minorGridLinePenᅟ
.- setMinorGridLineVisible([visible=true])¶
- Parameters:
visible – bool
Setter of property
minorGridVisibleᅟ
.- setRange(min, max)¶
- Parameters:
min – object
max – object
Sets the range shown on the axis. Depending on the actual axis type, the
min
andmax
parameters are converted to appropriate types of values. If the conversion is impossible, the function call does nothing.- setReverse([reverse=true])¶
- Parameters:
reverse – bool
Setter of property
reverseᅟ
.Setter of property
shadesBorderColorᅟ
.Setter of property
shadesBrushᅟ
.Setter of property
shadesColorᅟ
.Setter of property
shadesPenᅟ
.- setShadesVisible([visible=true])¶
- Parameters:
visible – bool
Setter of property
shadesVisibleᅟ
.Setter of property
titleBrushᅟ
.Sets the font used to draw titles to
font
.See also
Setter of property
titleFontᅟ
.- setTitleText(title)¶
- Parameters:
title – str
See also
Setter of property
titleTextᅟ
.- setTitleVisible([visible=true])¶
- Parameters:
visible – bool
See also
Setter of property
titleVisibleᅟ
.- setTruncateLabels([truncateLabels=true])¶
- Parameters:
truncateLabels – bool
Setter of property
truncateLabelsᅟ
.- setVisible([visible=true])¶
- Parameters:
visible – bool
Sets the visibility of the axis, labels, and grid lines to
visible
.See also
Setter of property
visibleᅟ
.Getter of property
shadesBorderColorᅟ
.Notification signal of property
shadesBorderColorᅟ
.Getter of property
shadesBrushᅟ
.Notification signal of property
shadesBrushᅟ
.Getter of property
shadesColorᅟ
.Notification signal of property
shadesColorᅟ
.Getter of property
shadesPenᅟ
.Notification signal of property
shadesPenᅟ
.- shadesVisible()¶
- Return type:
bool
Getter of property
shadesVisibleᅟ
.- shadesVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
shadesVisibleᅟ
.- show()¶
Makes the axis, labels, and grid lines visible.
Getter of property
titleBrushᅟ
.Notification signal of property
titleBrushᅟ
.Returns the font used to draw titles.
See also
Getter of property
titleFontᅟ
.Notification signal of property
titleFontᅟ
.- titleText()¶
- Return type:
str
See also
Getter of property
titleTextᅟ
.- titleTextChanged(title)¶
- Parameters:
title – str
Notification signal of property
titleTextᅟ
.- titleVisibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
titleVisibleᅟ
.- truncateLabels()¶
- Return type:
bool
Getter of property
truncateLabelsᅟ
.- truncateLabelsChanged(truncateLabels)¶
- Parameters:
truncateLabels – bool
Notification signal of property
truncateLabelsᅟ
.- visibleChanged(visible)¶
- Parameters:
visible – bool
Notification signal of property
visibleᅟ
.