TaurusTrend2DDialog

Inheritance diagram of TaurusTrend2DDialog
class TaurusTrend2DDialog(parent=None, designMode=False, toolbar=True, stackMode='deltatime', buffersize=512, options=None, autoscale='xyz', **kwargs)[source]

This is a widget for displaying trends from 1D Taurus attributes (i.e., representing the variation over time of a 1D array). Sometimes this kind of plots are also known as “spectrograms”.

The widget shows a 3D plot (Z represented with colors) where the values in the 1D array are plotted in the Y-Z plane and are stacked along the X axis.

Import from taurus.qt.qtgui.extra_guiqwt as:

from taurus.qt.qtgui.extra_guiqwt import TaurusTrend2DDialog
getMaxDataBufferSize()[source]

returns the maximum number of events that can be plotted in the trend

Returns:

Return type:

int

getModel(**kwargs)[source]

reimplemented from TaurusBaseWidget

getModelClass(**kwargs)[source]

reimplemented from TaurusBaseWidget

classmethod getQtDesignerPluginInfo()[source]

reimplemented from TaurusBaseWidget

getStackMode()[source]
getUseArchiving()[source]

whether TaurusTrend is looking for data in the archiver when needed

Returns:

Return type:

bool

keyPressEvent(self, a0: Optional[QKeyEvent])[source]
maxDataBufferSize

returns the maximum number of events that can be plotted in the trend

Returns:

Return type:

int

model

reimplemented from TaurusBaseWidget

modifiableByUser

whether the user can change the contents of the widget

Returns:

True if the user is allowed to modify the look&feel

Return type:

bool

resetMaxDataBufferSize()[source]

Same as setMaxDataBufferSize(512) (i.e. 512 events)

resetStackMode()[source]
resetUseArchiving()[source]

Same as setUseArchiving(False)

setMaxDataBufferSize(maxSize)[source]

sets the maximum number of events that will be stacked

Parameters:

maxSize (int) – the maximum limit

See also

TaurusTrendSet

setModel(model, **kwargs)[source]

reimplemented from TaurusBaseWidget

setModifiableByUser(modifiable)[source]

reimplemented from TaurusBaseWidget

setStackMode(mode)[source]

set the type of stack to be used. This determines how X values are interpreted:

  • as timestamps (‘datetime’ or ‘t’)

  • as time deltas (‘deltatime’ or ‘d’)

  • as event numbers (‘event’ or ‘e’)

Parameters:

mode (one of 'datetime', 'timedelta' or 'event')

setUseArchiving(enable)[source]

enables/disables looking up in the archiver for data stored before the Trend was started

Parameters:

enable (bool) – if True, archiving values will be used if available

stackMode
useArchiving

whether TaurusTrend is looking for data in the archiver when needed

Returns:

Return type:

bool