|
From: John H. <jdh...@ac...> - 2005-11-09 05:01:45
|
>>>>> "Jim" == Jim Carroll <ji...@ou...> writes:
Jim> Hi, I'm using matplotlib 0.84 on Windows XP, Python 2.4
Jim> WxWidgets 2.6.1 w/ numarray.
Jim> I'm embedding in a wxPython app, following the example in
Jim> embedding_in_wx.py in the examples directory. This app shows
Jim> the same problem. I can use the + - keys to zoom into the
Jim> graph vertically, but when I try the horizontal buttons:
Jim> I'm getting the message: Line2D instance has no attribute
Jim> 'set_xclip' (whole log is below.)
Jim> The zooming is actually happening, If I force a refresh of
Jim> the app, the zoom happened, but because of the exception the
Jim> screen update doesn't happen automatically.
Jim> Is there a quick fix I could do for now? (besides commenting
Jim> out the offending line?)
This is a bug. I removed the xclip "feature" from the line class
because noone was using it and it wasn't helping performance (which
was it's original aim). But it appears there is a lingering reference
in the axes.py code for users using the "classic" toolbar. Search for
"set_xclip" n the axes.py code an comment out lines like
for line in self.lines:
line.set_xclip(xmin, xmax)
Or else set your matplotlib rc setting to
toolbar : toolbar2 # None | classic | toolbar2
Hope this helps,
JDH
|