On Feb 25 Samuel Smith reported that WXAgg crashed on MacOS X using 
matplotlib 0.87. I just built matplotlib 0.87.7 on Python 2.5 and am 
still having the problem.

Christopher Barker suggested disabling acceleration:
import matplotlib.backends.backend_wxagg 
matplotlib.backends.backend_wxagg._use_accelerator(False) 

and that does work, but I was wondering if a fix was known? Google only 
turned up the problem, not a solution.

Regards,

-- Russell

P.S. here are the gory details:

Configuration:
- PowerBook G4
- MacOS X 10.4.7
- Python 2.5 (from the python main site)
- wxPython 2.7.1.3 (from 
<http://pythonmac.org/packages/py25-fat/index.html>)
- numpy 1.0, numarray 1.5.1 and Numeric 24.2 (all from source)
- matplotlib 0.87.7 (from source)

TkAgg works fine, but WXAgg fails (using numarray or numeric as numerix) 
when I try to plot as follows:
>>> from pylab import *
>>> show()
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/matplotlib/backends/backend_wx.py", line 1048, in _onPaint
    self.draw(repaint=False)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/matplotlib/backends/backend_wxagg.py", line 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
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/matplotlib/backends/backend_wx.py", line 1193, in show
    figwin.canvas.draw()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac
kages/matplotlib/backends/backend_wxagg.py", line 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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to