QwtSeriesStore

class qwt.series_store.QwtSeriesStore[source]

Class storing a QwtSeriesData object

QwtSeriesStore and QwtPlotSeriesItem are intended as base classes for all plot items iterating over a series of samples.

setData(series)[source]

Assign a series of samples

Parameters:series (qwt.series_data.QwtSeriesData) – Data

Warning

The item takes ownership of the data object, deleting it when its not used anymore.

data()[source]
Returns:the series data
sample(index)[source]
Parameters:index (int) – Index
Returns:Sample at position index
dataSize()[source]
Returns:Number of samples of the series
dataRect()[source]
Returns:Bounding rectangle of the series or an invalid rectangle, when no series is stored
setRectOfInterest(rect)[source]

Set a the “rect of interest” for the series

Parameters:rect (QRectF) – Rectangle of interest
swapData(series)[source]

Replace a series without deleting the previous one

Parameters:series (qwt.series_data.QwtSeriesData) – New series
Returns:Previously assigned series
class qwt.series_store.QwtSeriesStore[source]

Class storing a QwtSeriesData object

QwtSeriesStore and QwtPlotSeriesItem are intended as base classes for all plot items iterating over a series of samples.

setData(series)[source]

Assign a series of samples

Parameters:series (qwt.series_data.QwtSeriesData) – Data

Warning

The item takes ownership of the data object, deleting it when its not used anymore.

data()[source]
Returns:the series data
sample(index)[source]
Parameters:index (int) – Index
Returns:Sample at position index
dataSize()[source]
Returns:Number of samples of the series
dataRect()[source]
Returns:Bounding rectangle of the series or an invalid rectangle, when no series is stored
setRectOfInterest(rect)[source]

Set a the “rect of interest” for the series

Parameters:rect (QRectF) – Rectangle of interest
swapData(series)[source]

Replace a series without deleting the previous one

Parameters:series (qwt.series_data.QwtSeriesData) – New series
Returns:Previously assigned series