taurus taurus

Previous topic

FixedLabelsScaleEngine

Next topic

TaurusArrayEditor

This Page

ScanTrendsSet

Inheritance diagram of ScanTrendsSet

class ScanTrendsSet(name, parent=None, autoClear=True, xDataKey=None)

Bases: taurus.qt.qtgui.plot.taurustrend.TaurusTrendsSet

An specialized TaurusTrendSet that instead of being updated via events, it receives new data directly via a PyQt slot

receives signal containing record data from a scan.

When an event is received, all curves belonging to a TaurusTrendSet are updated.

Note that internally each curve is treated as a RawData curve (i.e., it is not aware of events by itself, but it relies on the ScanTrendSet object to update its values)

See also

TaurusTrendSet

DEFAULT_X_DATA_KEY = 'point_nb'
clearTrends(replot=True)

Reimplemented from TaurusTrendsSet.clearTrends().

Note

If the autoClear property is True for this trend set, this method is called automatically every time a data_desc package is received.

connectWithQDoor(qdoor)

connects this ScanTrendsSet to a QDoor

Parameters:qdoor (:class:~`QDoor` or :class:~`str`) – either a QDoor instance or the QDoor name
getDataDesc()
getModel()
onPlotablesFilterChanged(flt)

slot to be called whenever the plotables filter is changed. It will call clearTrends() if flt is None

Parameters:flt (:class:~`list` <:class:~`method`>) –
scanDataReceived(packet)

packet is a dict with {type:str, “data”:object} and the accepted types are: data_desc, record_data, record_end and the data objects are: seq<ColumnDesc.Todict()>, record.data dict and dict , respectively

setAutoClear(enable)
setEndMacroMarkerEnabled(enable)

Sets whether a marker should be put at the end of each macro or not

Parameters:enabled (:class:~`bool`) –
setModel(model)
setPlotablesFilter(flt)
setXDataKey(key)