DeltaTimeScaleEngine
¶
-
class
DeltaTimeScaleEngine
(scaleDraw=None)[source]¶ Bases:
PyQt4.Qwt5.Qwt.QwtLinearScaleEngine
-
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 (:class:~`Qwt5.QwtPlot`) – the plot to change
- axis (:class:~`Qwt5.QwtPlot.Axis`) – the id of the axis
- scaleDraw (:class:~`Qwt5.QwtScaleDraw`) – Scale draw to use. If None given,
a
FancyScaleDraw
will be set - scaleEngine (:class:~`Qwt5.QwtScaleEngine`) – Scale draw to use. If None given,
a
Qwt5.QwtLinearScaleEngine
will be set
-
divideScale
(x1, x2, maxMajSteps, maxMinSteps, stepSize)[source]¶ Reimplements Qwt5.QwtLinearScaleEngine.divideScale
Return type: :class:~`Qwt5.QwtScaleDiv` Returns: a scale division whose ticks are aligned with the natural delta time units
-
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 (:class:~`Qwt5.QwtPlot`) – the plot to change
- axis (:class:~`Qwt5.QwtPlot.Axis`) – the id of the axis
- scaleDraw (:class:~`Qwt5.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 (:class:~`float` or :class:~`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 (:class:~`Qwt5.QwtPlot.Axis`) – the axis
- rotation (:class:~`float`) – The rotation (in degrees, clockwise-positive)
Return type: :class:~`Qt.Alignment`
Returns: an alignment
-
static