FancyScaleDraw
digraph inheritanceb375324ed3 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"FancyScaleDraw" [URL="#taurus.qt.qtgui.extra_guiqwt.scales.FancyScaleDraw",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",tooltip="This is a scaleDraw with a tuneable palette and label formats"];
"QwtScaleDraw" -> "FancyScaleDraw" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QwtAbstractScaleDraw" [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 abstract base class for drawing scales"];
"QwtScaleDraw" [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 class for drawing scales"];
"QwtAbstractScaleDraw" -> "QwtScaleDraw" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
- class FancyScaleDraw(format=None, palette=None)[source]
This is a scaleDraw with a tuneable palette and label formats
Import from
taurus.qt.qtgui.extra_guiqwt.scales
as:from taurus.qt.qtgui.extra_guiqwt.scales import FancyScaleDraw
- draw(painter, palette)[source]
Draw the scale
- Parameters
painter (QPainter) – The painter
palette (QPalette) – Palette, text color is used for the labels, foreground color for ticks and backbone
- getLabelFormat()[source]
pass a format string (e.g. “%g”) or None to use default (it uses the locale)
- label(val)[source]
Convert a value into its representing label
The value is converted to a plain text using QLocale().toString(value). This method is often overloaded by applications to have individual labels.
- Parameters
value (float) – Value
- Returns
Label string