Is it possible to build matpoltlib with scipy_core support, rather
than Numeric or numarray? I did what I thought was a successful build
and install, but a quick test resulted in some Tkinter backend errors:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in plot(*args=(array([3, 4, 5, 6]), array([ 9, 16, 25, 36])),
**kwargs={})
2020 def plot(*args, **kwargs):
2021 # allow callers to override the hold state by passing
hold=True|False
-> 2022 b = ishold()
b = undefined
global ishold = <function ishold at 0x3061c30>
2023 h = popd(kwargs, 'hold', None)
2024 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in ishold()
896 Return the hold status of the current axes
897 """
--> 898 return gca().ishold()
global gca.ishold = undefined
899
900 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in gca(**kwargs={})
847 """
848
--> 849 ax = gcf().gca(**kwargs)
ax = undefined
global gcf.gca = undefined
kwargs = {}
850 return ax
851
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in gcf()
857 return figManager.canvas.figure
858 else:
--> 859 return figure()
global figure = <function figure at 0x3061af0>
860
861 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py
in figure(num=1, figsize=[8.0, 6.0], dpi=80.0, facecolor=0.75,
edgecolor='white', frameon=True)
827 figManager.canvas.figure.number = num
828
--> 829 draw_if_interactive()
global draw_if_interactive = <function wrapper at 0x314d730>
830 return figManager.canvas.figure
831
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/IPython/genutils.py
in wrapper(*args=(), **kw={})
683 def wrapper(*args,**kw):
684 wrapper.called = False
--> 685 out = func(*args,**kw)
out = undefined
global func = undefined
args = ()
kw = {}
686 wrapper.called = True
687 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py
in draw_if_interactive()
57 figManager = Gcf.get_active()
58 if figManager is not None:
---> 59 figManager.show()
figManager.show = <bound method FigureManagerTkAgg.show of
<matplotlib.backends.backend_tkagg.FigureManagerTkAgg instance at
0x3066e68>>
60
61
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py
in show(self=<matplotlib.backends.backend_tkagg.FigureManagerTkAgg
instance at 0x3066e68>)
295 if sys.platform=='win32' : self.window.update()
296 else:
--> 297 self.canvas.draw()
self.canvas.draw = <bound method FigureCanvasTkAgg.draw of
<matplotlib.backends.backend_tkagg.FigureCanvasTkAgg instance at
0x30667d8>>
298 self._shown = True
299
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py
in draw(self=<matplotlib.backends.backend_tkagg.FigureCanvasTkAgg
instance at 0x30667d8>)
150 def draw(self):
151 FigureCanvasAgg.draw(self)
--> 152 tkagg.blit(self._tkphoto, self.renderer._renderer, 2)
global tkagg.blit = <function blit at 0x44df30>
self._tkphoto = <Tkinter.PhotoImage instance at 0x30668f0>
self.renderer._renderer = <RendererAgg object at 0x6223224>
153 self._master.update_idletasks()
154
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/tkagg.py
in blit(photoimage=<Tkinter.PhotoImage instance at 0x30668f0>,
aggimage=<RendererAgg object at 0x6223224>, colormode=2)
12 except AttributeError:
13 _tkagg.tkinit(id(tk), 0)
---> 14 tk.call("PyAggImagePhoto", photoimage,
id(aggimage), colormode)
tk.call = <built-in method call of tkapp object at 0x30586e8>
photoimage = <Tkinter.PhotoImage instance at 0x30668f0>
global id = undefined
aggimage = <RendererAgg object at 0x6223224>
colormode = 2
15 except (ImportError, AttributeError, Tk.TclError):
16 raise
TclError: usage: PyAggImagePhoto destPhoto srcImage
In [5]: Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk/Tkinter.py",
line 1345, in __call__
return self.func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py",
line 148, in resize
self.show()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_tkagg.py",
line 152, in draw
tkagg.blit(self._tkphoto, self.renderer._renderer, 2)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/tkagg.py",
line 14, in blit
tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode)
TclError: usage: PyAggImagePhoto destPhoto srcImage
···
--
Chris Fonnesbeck
Atlanta, GA