SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Andrew S. <str...@as...> - 2005年04月13日 02:40:46
Hi All,
On my debian sarge (testing) box, I'm getting the following error with 
the latest CVS code, WXAgg backend and numerix = numarray. I don't get 
a similar error with GTKAgg, so I think it has to do with the WX 
backend. My thinking is that we should fix this before the 0.80 
release. Unfortunately, I don't have time to delve in right now.
$ python simple_plot.py
Traceback (most recent call last):
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 1067, in _onSize
 self.draw()
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wxagg.py", 
line 61, in draw
 self.gui_repaint()
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 897, in gui_repaint
 drawDC.DrawBitmap(self.bitmap, 0, 0)
 File 
"/home/ron/devel/debian/wxwindows/2.5.1.1-debs/wxwidgets2.5-2.5.1.1/wxPython/../debian/libwxgtk2.5-python/usr/lib/python2.3/site-packages/wx/gdi.py", 
line 2397, in DrawBitmap
TypeError: Expected a 2-tuple of integers or a wxPoint object.
Traceback (most recent call last):
 File "simple_plot.py", line 8, in ?
 plot(t, s)
 File "/usr/lib/python2.3/site-packages/matplotlib/pylab.py", line 
1900, in plot
 draw_if_interactive()
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 1161, in draw_if_interactive
 figManager.canvas.draw()
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wxagg.py", 
line 61, in draw
 self.gui_repaint()
 File 
"/usr/lib/python2.3/site-packages/matplotlib/backends/backend_wx.py", 
line 897, in gui_repaint
 drawDC.DrawBitmap(self.bitmap, 0, 0)
 File 
"/home/ron/devel/debian/wxwindows/2.5.1.1-debs/wxwidgets2.5-2.5.1.1/wxPython/../debian/libwxgtk2.5-python/usr/lib/python2.3/site-packages/wx/gdi.py", 
line 2397, in DrawBitmap
TypeError: Expected a 2-tuple of integers or a wxPoint object.
From: John H. <jdh...@ac...> - 2005年04月13日 13:42:09
>>>>> "Andrew" == Andrew Straw <str...@as...> writes:
 Andrew> Hi All, On my debian sarge (testing) box, I'm getting the
 Andrew> following error with the latest CVS code, WXAgg backend
 Andrew> and numerix = numarray. I don't get a similar error with
 Andrew> GTKAgg, so I think it has to do with the WX backend. My
 Andrew> thinking is that we should fix this before the 0.80
 Andrew> release. Unfortunately, I don't have time to delve in
 Andrew> right now.
See the release notes <wink>
 Incorporated Werner's wx patch -- wx backend should be compatible
 with wxpython2.4 and recent versions of 2.5. Some early versions of
 wxpython 2.5 will not work because there was a temporary change in
 the dc API that was rolled back to make it 2.4 compliant
So basically my understanding is that early versions of wx 2.5 made
some changes to the 2.4 API, decided they were unwise, and unrolled
them to make them compatible with 2.4.
The error you are getting is one of these changes.
If you apt-get upgrade your wx on debian sarge, what wx version do you
get, and does the problem go away?
We do have the option of unrolling the namespace change Werner made
for a while, but this seems like a maintenance hassle to have to
reapply it later. I open to suggestions.
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /