DeltaTimeScaleEngine

digraph inheritance981ec4559e { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "DeltaTimeScaleEngine" [URL="#taurus.qt.qtgui.extra_guiqwt.scales.DeltaTimeScaleEngine",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top"]; "QwtLinearScaleEngine" -> "DeltaTimeScaleEngine" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QwtLinearScaleEngine" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A scale engine for linear scales"]; "QwtScaleEngine" -> "QwtLinearScaleEngine" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QwtScaleEngine" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Base class for scale engines."]; }
class DeltaTimeScaleEngine(scaleDraw=None)[source]

Import from taurus.qt.qtgui.extra_guiqwt.scales as:

from taurus.qt.qtgui.extra_guiqwt.scales import DeltaTimeScaleEngine
static disableInAxis(plot, axis, scaleDraw=None, scaleEngine=None)[source]

convenience method that will disable this engine in the given axis. Note that it changes the ScaleDraw as well.

Parameters
  • plot (qwt.QwtPlot) – the plot to change

  • axis (qwt.QwtPlot.Axis) – the id of the axis

  • scaleDraw (qwt.QwtScaleDraw) – Scale draw to use. If None given, a FancyScaleDraw will be set

  • scaleEngine (qwt.QwtScaleEngine) – Scale draw to use. If None given, a qwt.QwtLinearScaleEngine will be set

divideScale(x1, x2, maxMajSteps, maxMinSteps, stepSize)[source]

Reimplements qwt.QwtLinearScaleEngine.divideScale

Returns

a scale division whose ticks are aligned with the natural delta time units

Return type

qwt.QwtScaleDiv

static enableInAxis(plot, axis, scaleDraw=None, rotation=None)[source]

convenience method that will enable this engine in the given axis. Note that it changes the ScaleDraw as well.

Parameters
  • plot (qwt.QwtPlot) – the plot to change

  • axis (qwt.QwtPlot.Axis) – the id of the axis

  • scaleDraw (qwt.QwtScaleDraw) – Scale draw to use. If None given, the current ScaleDraw for the plot will be used if possible, and a TaurusTimeScaleDraw will be set if not

  • rotation (float or None) – The rotation of the labels (in degrees, clockwise- positive)

static getDefaultAxisLabelsAlignment(axis, rotation)[source]

return a “smart” alignment for the axis labels depending on the axis and the label rotation

Parameters
  • axis (qwt.QwtPlot.Axis) – the axis

  • rotation (float) – The rotation (in degrees, clockwise-positive)

Returns

an alignment

Return type

Qt.Alignment

scaleDraw()[source]
setScaleDraw(scaleDraw)[source]