QXYSeries

The QXYSeries class is a base class for line, spline, and scatter series. More

Inheritance diagram of PySide6.QtCharts.QXYSeries

Inherited by: QScatterSeries, QLineSeries, QSplineSeries

Synopsis

Functions

Virtual functions

Detailed Description

class PySide6.QtCharts.QXYSeries
PySide6.QtCharts.QXYSeries.append(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.append(points)
Parameters

points

PySide6.QtCharts.QXYSeries.append(x, y)
Parameters
  • x – float

  • y – float

Adds the data point with the coordinates x and y to the series.

PySide6.QtCharts.QXYSeries.appendNp(x, y)
Parameters
  • xPyArrayObject

  • yPyArrayObject

Adds the list of data points specified by two one-dimensional, equally sized numpy arrays representing the x, y values, respectively.

PySide6.QtCharts.QXYSeries.at(index)
Parameters

index – int

Return type

PySide6.QtCore.QPointF

Returns the data point at the position specified by index in the internal series of points.

PySide6.QtCharts.QXYSeries.brush()
Return type

PySide6.QtGui.QBrush

PySide6.QtCharts.QXYSeries.clear()

Removes all points from the series.

See also

pointsRemoved()

PySide6.QtCharts.QXYSeries.clicked(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.color()
Return type

PySide6.QtGui.QColor

See also

setColor()

PySide6.QtCharts.QXYSeries.colorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QXYSeries.count()
Return type

int

Returns the number of data points in a series.

PySide6.QtCharts.QXYSeries.doubleClicked(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.hovered(point, state)
Parameters
PySide6.QtCharts.QXYSeries.insert(index, point)
Parameters

Inserts the data point point in the series at the position specified by index.

See also

pointAdded()

PySide6.QtCharts.QXYSeries.__lshift__(points)
Parameters

points

Return type

PySide6.QtCharts.QXYSeries

PySide6.QtCharts.QXYSeries.__lshift__(point)
Parameters

pointPySide6.QtCore.QPointF

Return type

PySide6.QtCharts.QXYSeries

PySide6.QtCharts.QXYSeries.pen()
Return type

PySide6.QtGui.QPen

PySide6.QtCharts.QXYSeries.penChanged(pen)
Parameters

penPySide6.QtGui.QPen

PySide6.QtCharts.QXYSeries.pointAdded(index)
Parameters

index – int

PySide6.QtCharts.QXYSeries.pointLabelsClipping()
Return type

bool

PySide6.QtCharts.QXYSeries.pointLabelsClippingChanged(clipping)
Parameters

clipping – bool

PySide6.QtCharts.QXYSeries.pointLabelsColor()
Return type

PySide6.QtGui.QColor

PySide6.QtCharts.QXYSeries.pointLabelsColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QXYSeries.pointLabelsFont()
Return type

PySide6.QtGui.QFont

PySide6.QtCharts.QXYSeries.pointLabelsFontChanged(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtCharts.QXYSeries.pointLabelsFormat()
Return type

str

PySide6.QtCharts.QXYSeries.pointLabelsFormatChanged(format)
Parameters

format – str

PySide6.QtCharts.QXYSeries.pointLabelsVisibilityChanged(visible)
Parameters

visible – bool

PySide6.QtCharts.QXYSeries.pointLabelsVisible()
Return type

bool

PySide6.QtCharts.QXYSeries.pointRemoved(index)
Parameters

index – int

PySide6.QtCharts.QXYSeries.pointReplaced(index)
Parameters

index – int

PySide6.QtCharts.QXYSeries.points()
Return type

Returns the points in the series.

PySide6.QtCharts.QXYSeries.pointsRemoved(index, count)
Parameters
  • index – int

  • count – int

PySide6.QtCharts.QXYSeries.pointsReplaced()
PySide6.QtCharts.QXYSeries.pointsVector()
Return type

Note

This function is deprecated.

Use points() instead. Returns the points in the series.

PySide6.QtCharts.QXYSeries.pointsVisible()
Return type

bool

PySide6.QtCharts.QXYSeries.pressed(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.released(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.remove(point)
Parameters

pointPySide6.QtCore.QPointF

PySide6.QtCharts.QXYSeries.remove(index)
Parameters

index – int

Removes the point at the position specified by index from the series.

See also

pointRemoved()

PySide6.QtCharts.QXYSeries.remove(x, y)
Parameters
  • x – float

  • y – float

Removes the point that has the coordinates x and y from the series.

See also

pointRemoved()

PySide6.QtCharts.QXYSeries.removePoints(index, count)
Parameters
  • index – int

  • count – int

Removes the number of points specified by count from the series starting at the position specified by index.

See also

pointsRemoved()

PySide6.QtCharts.QXYSeries.replace(oldX, oldY, newX, newY)
Parameters
  • oldX – float

  • oldY – float

  • newX – float

  • newY – float

Replaces the point with the coordinates oldX and oldY with the point with the coordinates newX and newY. Does nothing if the old point does not exist.

See also

pointReplaced()

PySide6.QtCharts.QXYSeries.replace(index, newX, newY)
Parameters
  • index – int

  • newX – float

  • newY – float

Replaces the point at the position specified by index with the point that has the coordinates newX and newY.

See also

pointReplaced()

PySide6.QtCharts.QXYSeries.replace(oldPoint, newPoint)
Parameters
PySide6.QtCharts.QXYSeries.replace(points)
Parameters

points

Replaces the current points with the points specified by points.

Note

This is much faster than replacing data points one by one, or first clearing all data, and then appending the new data. Emits when the points have been replaced.

See also

pointsReplaced()

PySide6.QtCharts.QXYSeries.replace(index, newPoint)
Parameters
PySide6.QtCharts.QXYSeries.replaceNp(x, y)
Parameters
  • xPyArrayObject

  • yPyArrayObject

Replaces the current points with the points specified by two one-dimensional, equally sized numpy arrays representing the x, y values, respectively.

PySide6.QtCharts.QXYSeries.setBrush(brush)
Parameters

brushPySide6.QtGui.QBrush

Sets the brush used for drawing points on the chart to brush. If the brush is not defined, the brush from the chart theme setting is used.

See also

setTheme()

PySide6.QtCharts.QXYSeries.setColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

color()

PySide6.QtCharts.QXYSeries.setPen(pen)
Parameters

penPySide6.QtGui.QPen

Sets the pen used for drawing points on the chart to pen. If the pen is not defined, the pen from the chart theme is used.

See also

setTheme()

PySide6.QtCharts.QXYSeries.setPointLabelsClipping([enabled=true])
Parameters

enabled – bool

PySide6.QtCharts.QXYSeries.setPointLabelsColor(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QXYSeries.setPointLabelsFont(font)
Parameters

fontPySide6.QtGui.QFont

PySide6.QtCharts.QXYSeries.setPointLabelsFormat(format)
Parameters

format – str

PySide6.QtCharts.QXYSeries.setPointLabelsVisible([visible=true])
Parameters

visible – bool

PySide6.QtCharts.QXYSeries.setPointsVisible([visible=true])
Parameters

visible – bool

See also

pointsVisible()