QBoxSet

The QBoxSet class represents one item in a box-and-whiskers chart. More

Inheritance diagram of PySide6.QtCharts.QBoxSet

Synopsis

Functions

Signals

Detailed Description

A box-and-whiskers item is a graphical representation of a range and three median values that is constructed from five different values. There are two ways to specify the values. The first one is by using a constructor or stream operator (<<). The values have to be specified in the following order: lower extreme, lower quartile, median, upper quartile, and upper extreme.

The second way is to create an empty QBoxSet instance and specify the values using the setValue() method.

See the box-and-whiskers chart example to learn how to create a box-and-whiskers chart.

See also

QBoxPlotSeries

class PySide6.QtCharts.QBoxSet([label=""[, parent=None]])

PySide6.QtCharts.QBoxSet(le, lq, m, uq, ue[, label=””[, parent=None]])

Parameters
  • ue – float

  • le – float

  • m – float

  • lq – float

  • label – str

  • uq – float

  • parentPySide6.QtCore.QObject

Constructs a box-and-whiskers item with the optional label label and parent parent.

Constructs a box-and-whiskers item with the following ordered values: le specifies the lower extreme, lq the lower quartile, m the median, uq the upper quartile, and ue the upper quartile. Optionally, the label and parent can be specified.

PySide6.QtCharts.QBoxSet.ValuePositions

This enum type defines the values of a box-and-whiskers item:

Constant

Description

QBoxSet.LowerExtreme

The smallest value of the box-and-whiskers item.

QBoxSet.LowerQuartile

The median value of the lower half of the box-and-whiskers item.

QBoxSet.Median

The median value of the box-and-whiskers item.

QBoxSet.UpperQuartile

The median value of the upper half of the box-and-whiskers item.

QBoxSet.UpperExtreme

The largest value of the box-and-whiskers item.

PySide6.QtCharts.QBoxSet.append(value)
Parameters

value – float

Appends the new value specified by value to the end of the box-and-whiskers item.

PySide6.QtCharts.QBoxSet.append(values)
Parameters

values

PySide6.QtCharts.QBoxSet.at(index)
Parameters

index – int

Return type

float

Returns the value of the box-and-whiskers item specified by index. The index can be specified by using ValuePositions enumeration values. If the index is out of bounds, 0.0 is returned.

PySide6.QtCharts.QBoxSet.brush()
Return type

PySide6.QtGui.QBrush

This property holds The brush used fill the box of the box-and-whiskers item..

PySide6.QtCharts.QBoxSet.brushChanged()
PySide6.QtCharts.QBoxSet.clear()

Sets all the values of the box-and-whiskers item to 0.

PySide6.QtCharts.QBoxSet.cleared()
PySide6.QtCharts.QBoxSet.clicked()
PySide6.QtCharts.QBoxSet.count()
Return type

int

Returns the number of values appended to the box-and-whiskers item.

PySide6.QtCharts.QBoxSet.doubleClicked()
PySide6.QtCharts.QBoxSet.hovered(status)
Parameters

status – bool

PySide6.QtCharts.QBoxSet.label()
Return type

str

Returns the label of the category of the box-and-whiskers item.

See also

setLabel()

PySide6.QtCharts.QBoxSet.__lshift__(value)
Parameters

value – float

Return type

PySide6.QtCharts.QBoxSet

PySide6.QtCharts.QBoxSet.operator[](index)
Parameters

index – int

Return type

float

Returns the value of the box-and-whiskers item specified by index. The index can be specified by using ValuePositions enumeration values. If the index is out of bounds, 0.0 is returned.

PySide6.QtCharts.QBoxSet.pen()
Return type

PySide6.QtGui.QPen

This property holds The pen used to draw the lines of the box-and-whiskers item..

PySide6.QtCharts.QBoxSet.penChanged()
PySide6.QtCharts.QBoxSet.pressed()
PySide6.QtCharts.QBoxSet.released()
PySide6.QtCharts.QBoxSet.setBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

This property holds The brush used fill the box of the box-and-whiskers item..

PySide6.QtCharts.QBoxSet.setLabel(label)
Parameters

label – str

Sets the label specified by label for the category of the box-and-whiskers item.

See also

label()

PySide6.QtCharts.QBoxSet.setPen(pen)
Parameters

penPySide6.QtGui.QPen

This property holds The pen used to draw the lines of the box-and-whiskers item..

PySide6.QtCharts.QBoxSet.setValue(index, value)
Parameters
  • index – int

  • value – float

Sets the value specified by value in the position specified by index. The index can be specified by using the ValuePositions enumeration values.

PySide6.QtCharts.QBoxSet.valueChanged(index)
Parameters

index – int

PySide6.QtCharts.QBoxSet.valuesChanged()