Hello!

Am Samstag 17 November 2007 15:37:39 schrieb Gerard Vermeulen:
> Try something like:
>
> import PyQt4.Qwt5 as Qwt
>
> class CanvasScale(Qwt.QwtPlotItem):
>     def __init__(self): # pass x- or y-axis as parameter?
>       Qwt.QwtPlotItem.__init__(self)
>       self.scaleDraw = Qwt.QwtScaleDraw()
>         # scaleDraw initialization code here
>
>     def draw(self, painter, xMap, yMap, rect):
>         # Look at the ImagePlotDemo how to use the map
>       # and how you might try to draw the scales:
>         # 1. figure out the scale position in pixels
>       # 2. figure out the scale length in pixels
>         # 3. draw the scale (see QwtAbstractScaleDraw.draw())
>
> Could you post your solution? I would like to transform it in an
> example.

Oh, I will try what I can do. Unfortunately, I am not that familiar with PyQwt 
yet except from doing the usual things...

Thanks,
Fabian
--
[EMAIL PROTECTED] mailing list

Reply via email to