taurus taurus

Previous topic

taurus.qt.qtgui.extra_guiqwt

Next topic

TaurusImageDialog

This Page

TaurusCurveDialog

Inheritance diagram of TaurusCurveDialog

class TaurusCurveDialog(parent=None, designMode=False, toolbar=True, **kwargs)

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

A taurus dialog for showing 1D data. It behaves as a regular guiqwt.plot.CurveDialog but it also offers the expected Taurus interface (e.g. setting models, save/apply configs, drag&drops,...)

See also

TaurusCurveWidget

addModels(modelNames)

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 (:class:~`sequence` <:class:~`str`> or :class:~`str`) – the names of the models to be plotted. For convenience, 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. Each model can optionally be composed of two parts, separated by “|” indicating X and Y components for the curve. If only one part is given, it is used for Y and X is automatically generated as an index.

See also

add_item()

getModel()

reimplemented from TaurusBaseWidget

getModelClass()

reimplemented from TaurusBaseWidget

classmethod getQtDesignerPluginInfo()

reimplemented from TaurusBaseWidget

keyPressEvent(event)
model

reimplemented from TaurusBaseWidget

modifiableByUser

whether the user can change the contents of the widget

Return type::class:~`bool`
Returns:True if the user is allowed to modify the look&feel
setModel(modelNames)

Removes current TaurusCurveItems and adds new ones.

Parameters:modelNames (:class:~`sequence` <:class:~`str`> or :class:~`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. Each model can optionally be composed of two parts, separated by “|” indicating X and Y components for the curve. If only one part is given, it is used for Y and X is automatically generated as an index.

See also

addModels()

setModifiableByUser(modifiable)

reimplemented from TaurusBaseWidget