|
From: Joaquin A. M. <gat...@ho...> - 2006-08-12 17:05:06
|
Dear all,
I upgraded matplotlib from 0.87.2.win32-py2.4 to 0.87.4. When trying to run
the test program
#program text.py
import matplotlib as mpl
mpl.use('WXAgg')
mpl.interactive(False)
from pylab import plot, show
plot([1,2,3,4])
show()
double clicking on it or at the command line I got a warning from python.exe
saying that library wxmsw26uh_vc.dll could not be found. This warning never
appeared with vs 87.2.
Surprisingly, after saying OK to the warning the plot is plotted.
I searched the web and found that recently someone reported a similar
problem with matplotlib 87.4 and this library to the enthon team. I searched
my hard disk and I found this library in the support directory of
wxGlade(!!!???). I put this library in the Python24 directory and the
warning disappeared but then I got a new one:
C:\>python text.py
Traceback (most recent call last):
File "text.py", line 6, in ?
show()
File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wx.py",
line 1
193, in show
figwin.canvas.draw()
File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wxagg.py",
lin
e 63, in draw
self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
wx.Bitmap
I have the same problem with version 87.3. The problem only appears if I
want to use WXAgg.
I went back to vs87.2 and everything works as expected.
Could someone help me?
Thanks
Joaquin
_________________________________________________________________
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en
MSN Motor. http://motor.msn.es/researchcentre/
|