TaurusTrendDialog

digraph inheritance0c0e8c4676 { rankdir=UD; ratio=compress; size="8.0, 12.0"; "BaseConfigurableClass" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A base class defining the API for configurable objects."]; "CurveDialog" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Construct a CurveDialog object: plotting dialog box with integrated "]; "QDialog" -> "CurveDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CurveWidgetMixin" -> "CurveDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CurveWidgetMixin" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "PlotManager" -> "CurveWidgetMixin" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Logger" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "Object" -> "Logger" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Object" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "PlotManager" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Construct a PlotManager object, a 'controller' that organizes relations "]; "QDialog" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "QWidget" -> "QDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "QPaintDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QWidget" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "QObject" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusBaseComponent" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A generic Taurus component."]; "TaurusListener" -> "TaurusBaseComponent" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseConfigurableClass" -> "TaurusBaseComponent" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusBaseWidget" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="The base class for all Qt Taurus widgets."]; "TaurusBaseComponent" -> "TaurusBaseWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusListener" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="TaurusListener Interface"]; "Logger" -> "TaurusListener" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusTrendDialog" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A taurus widget for showing trends of scalar data."]; "CurveDialog" -> "TaurusTrendDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusBaseWidget" -> "TaurusTrendDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
class TaurusTrendDialog(parent=None, designMode=False, taurusparam=None, toolbar=True, **kwargs)[source]

Bases: guiqwt.plot.CurveDialog, taurus.qt.qtgui.base.taurusbase.TaurusBaseWidget

A taurus widget for showing trends of scalar data. It is an specialization of guiqwt.plot.CurveWidget, for displaying trends and offering the expected Taurus interface (e.g. setting models, save/apply configs, drag&drops,…)

addModels(modelNames)[source]

Creates TaurusCurveItems (one for each model in modelNames) and attaches them to the plot.

Note

you can also add curves using add_items(). addModels() is only a more Taurus-oriented interface. add_items() gives you more control.

Parameters:modelNames (sequence <str> or str) – the names of the models to be plotted. For convenience, a string is also accepted (instead of a sequence of strings), in which case the string will be internally converted to a sequence by splitting it on whitespace and commas.

See also

add_item()

getDropEventCallback()[source]

reimplemented from TaurusBaseWidget

getMaxDataBufferSize()[source]

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

Return type:int
Returns:
getModel()[source]

reimplemented from TaurusBaseWidget

getModelClass()[source]

reimplemented from TaurusBaseWidget

classmethod getQtDesignerPluginInfo()[source]

reimplemented from TaurusBaseWidget

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

whether TaurusTrend is looking for data in the archiver when needed

Return type:bool
Returns:
keyPressEvent(self, QKeyEvent)[source]
maxDataBufferSize

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

Return type:int
Returns:
model

reimplemented from TaurusBaseWidget

modelChanged
modifiableByUser

whether the user can change the contents of the widget

Return type:bool
Returns:True if the user is allowed to modify the look&feel
resetMaxDataBufferSize()[source]

Same as setMaxDataBufferSize(16384)

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(modelNames)[source]

Removes current TaurusCurveItems and adds new ones.

Parameters:modelNames (sequence <str> or str) – the names of the models to be plotted. For convenience, a string is also accepted (instead of a sequence of strings), in which case the string will be internally converted to a sequence by splitting it on whitespace and commas.

See also

addModels()

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’)
  • as time deltas (‘timedelta’)
  • as event numbers (‘event’)
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

Return type:bool
Returns: