FixedLabelsScaleEngine

digraph inheritancee2594957f9 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "FixedLabelsScaleEngine" [URL="#taurus.qt.qtgui.extra_guiqwt.scales.FixedLabelsScaleEngine",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" -> "FixedLabelsScaleEngine" [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 FixedLabelsScaleEngine(positions)[source]

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

from taurus.qt.qtgui.extra_guiqwt.scales import FixedLabelsScaleEngine
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=0.0)[source]

Calculate a scale division for an interval

Parameters:
  • x1 (float) – First interval limit

  • x2 (float) – Second interval limit

  • maxMajorSteps (int) – Maximum for the number of major steps

  • maxMinorSteps (int) – Maximum number of minor steps

  • stepSize (float) – Step size. If stepSize == 0.0, the scaleEngine calculates one

Returns:

Calculated scale division

static enableInAxis(plot, axis, scaleDraw=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 FixedLabelsScaleDraw will be set if not