Plot, plotting outside y-range ?

Andriy basilisk96 at gmail.com
Fri Aug 10 20:01:48 PDT 2007


Stef,

Actually, there is a catch: you have to do SetShowScrollbars(False)
directly after the Draw in your OnTimer handler:

  def OnTimer( self, event ):
    # .......
    # other interesting stuff here...
    # .......
    self.Canvas.Draw( plot.PlotGraphics(self.line),(0, self.Nx), (0, 100))
    self.Canvas.SetShowScrollbars(False)

and then it works as you expect!
Placing that last line in __init__ has no effect, and placing it
anywhere before the Draw causes flickering scrollbars.

Hope this helps more,
-amv-




More information about the wxpython-users mailing list