- class QColorAxis#
The
QColorAxis
class displays a color scale as one of the chart’s axes. More…Synopsis#
Properties#
autoRangeᅟ
- Property indicating if the range should be set from the list of values passed in QXYSeries::colorBy method or rather taken from the axis itselfmaxᅟ
- Maximum value on the axisminᅟ
- Minimum value on the axissizeᅟ
- Of the color scaletickCountᅟ
- Number of tick marks on the axis. This indicates how many grid lines are drawn on the chart if QColorAxis::gridVisible is equal to true. The default value is 5, and the number cannot be less than 2
Methods#
def
__init__()
def
autoRange()
def
gradient()
def
max()
def
min()
def
setAutoRange()
def
setGradient()
def
setMax()
def
setMin()
def
setRange()
def
setSize()
def
setTickCount()
def
size()
def
tickCount()
Signals#
def
maxChanged()
def
minChanged()
def
rangeChanged()
def
sizeChanged()
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 color axis can be set up to show a color scale based on the passed gradient. The scale has tick marks with labels based on data passed in QXYSeries::colorby method.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property autoRangeᅟ: bool#
This property holds The property indicating if the range should be set from the list of values passed in
colorBy
method or rather taken from the axis itself..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.
- Access functions:
Signal
maxChanged()
- 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.
- Access functions:
Signal
minChanged()
- property sizeᅟ: float#
This property holds The size of the color scale..
Depending on the alignment the value indicates either width or height.
- Access functions:
Signal
sizeChanged()
- property tickCountᅟ: int#
This property holds The number of tick marks on the axis. This indicates how many grid lines are drawn on the chart if QColorAxis::gridVisible is equal to
true
. The default value is 5, and the number cannot be less than 2..Note
Grid lines are intentionally invisible by default in
QColorAxis
as this type of axis does not represent geometric values.- Access functions:
- autoRange()#
- Return type:
bool
See also
Getter of property
autoRangeᅟ
.- autoRangeChanged(autoRange)#
- Parameters:
autoRange – bool
This signal is emitted when the auto range mode, specified by
autoRange
, changes.Notification signal of property
autoRangeᅟ
.- gradient()#
- Return type:
Returns the gradient currently used on the color scale.
- gradientChanged(gradient)#
- Parameters:
gradient –
QLinearGradient
Getter of property
maxᅟ
.- maxChanged(max)#
- Parameters:
max – float
This signal is emitted when the maximum value of the axis, specified by
max
, changes.Notification signal of property
maxᅟ
.Getter of property
minᅟ
.- minChanged(min)#
- Parameters:
min – float
This signal is emitted when the minimum value of the axis, specified by
min
, changes.Notification signal of property
minᅟ
.- rangeChanged(min, max)#
- Parameters:
min – float
max – float
This signal is emitted when the minimum or maximum value of the axis, specified by
min
andmax
, changes.- setAutoRange(autoRange)#
- Parameters:
autoRange – bool
See also
Setter of property
autoRangeᅟ
.- setGradient(gradient)#
- Parameters:
gradient –
QLinearGradient
Sets the gradient on the color scale to
gradient
.Setter of property
maxᅟ
.Setter of property
minᅟ
.- setRange(min, max)#
- Parameters:
min – float
max – float
Setter of property
sizeᅟ
.- setTickCount(count)#
- Parameters:
count – int
See also
Setter of property
tickCountᅟ
.Getter of property
sizeᅟ
.- sizeChanged(size)#
- Parameters:
size – float
Notification signal of property
sizeᅟ
.- tickCount()#
- Return type:
int
See also
Getter of property
tickCountᅟ
.- tickCountChanged(tickCount)#
- Parameters:
tickCount – int
This signal is emitted when the number of tick marks on the axis, specified by
tickCount
, changes.Notification signal of property
tickCountᅟ
.