FixedLabelsScaleEngine¶
-
class
FixedLabelsScaleEngine(positions)[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
FancyScaleDrawwill be set - scaleEngine (:class:~`Qwt5.QwtScaleEngine`) – Scale draw to use. If None given,
a
Qwt5.QwtLinearScaleEnginewill be set
-
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 (: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
FixedLabelsScaleDrawwill be set if not
-
static