I am using the SVN build of matplotlib last week.
I have included console dumps below.
···
***********************************************
ipython -pylab
loaded rc file /Users/smithsm/.matplotlib/matplotlibrc
matplotlib version 0.87.1
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.5.2006
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
$HOME=/Users/smithsm
CONFIGDIR=/Users/smithsm/.matplotlib
loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache
matplotlib data path /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
backend WXAgg version 2.6.2.1
Python 2.4.2 (#3, Jan 8 2006, 20:33:07)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.1.fix1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.
In [1]: plot([1,2,3])
---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap
---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Users/smithsm/<ipython console>
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in plot(*args, **kwargs)
2125 def plot(*args, **kwargs):
2126 # allow callers to override the hold state by passing hold=True|False
-> 2127 b = ishold()
2128 h = popd(kwargs, 'hold', None)
2129 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in ishold()
965 Return the hold status of the current axes
966 """
--> 967 return gca().ishold()
968
969 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in gca(**kwargs)
916 """
917
--> 918 ax = gcf().gca(**kwargs)
919 return ax
920
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in gcf()
926 return figManager.canvas.figure
927 else:
--> 928 return figure()
929
930 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor, edgecolor, frameon)
896 figManager.canvas.figure.number = num
897
--> 898 draw_if_interactive()
899 return figManager.canvas.figure
900
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/IPython/genutils.py in wrapper(*args, **kw)
802 def wrapper(*args,**kw):
803 wrapper.called = False
--> 804 out = func(*args,**kw)
805 wrapper.called = True
806 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in draw_if_interactive()
1170 figManager = Gcf.get_active()
1171 if figManager is not None:
-> 1172 figManager.canvas.draw()
1173
1174
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap
In [2]: ---------------------------------------------------------------------------
exceptions.MemoryError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
1046 self.realize()
1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
1049 # Update the display using a PaintDC
1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
60 FigureCanvasAgg.draw(self)
61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
63 if repaint:
64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the wx.Bitmap
On 11 Mar, 2006, at 10:25, Ken McIvor wrote:
On Mar 10, 2006, at 2:01 PM, Onsi Fakhouri wrote:
Ken, if you want me to try something let me know -- my guess is I'm using a different version of either the AGG library or wx.
I'm afraid that I'm at a loss right now. Knowing exactly what version of MacOS, Python, wxPython, and matplotlib you're using might help.
If you have MacOS 10.4, Python 2.3, and wxPython 2.6.2.1, then you could see if you have the same problem with my build of matplotlib:
http://agni.phys.iit.edu/~kmcivor/downloads/matplotlib-0.87.1-py2.3-macosx-10.4-ppc.egg
As an aside, does the cpp implementation run much faster than the python implementation?
You probably won't notice a difference unless you're doing animations. If you are, then it provides a big speedup under Linux but much less of a speedup on a Mac. I think the difference is due to the way wxWidgets is implemented on the two platforms.
Ken
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************