Plot, plotting outside y-range ?

thanks Andriy,

Andriy wrote:

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!
  

Yes it looks nice now, but ....
... when I resize the window now,
the whole window starts to oscillate,
apparently there are two masters wanting something different
- one wants scollbars
- the other don't want scrollbars
:frowning:

Any thoughts of what I should do in the OnResizeEvent,
I tried it, but apparently a lot happens there,
so I'ld better not touch that event.

btw, I can easily work around the problem, by clipping the values by my own,
but I find these contra-intuitive behavior of libraries not very elegant,
especially when the original library worked as expected.
( In other words, I think this is a bug :wink:

cheers,
Stef

···

Placing that last line in __init__ has no effect, and placing it
anywhere before the Draw causes flickering scrollbars.

Hope this helps more,
-amv-

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org