SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Chris F. <fon...@gm...> - 2005年09月30日 23:35:16
Any idea how easy it will be to use matplotlib with scipy_core (rather
than Numeric and numarray)? Will it just be a matter of replacing the
import statements?
Chris
From: Chris F. <fon...@gm...> - 2005年11月02日 13:39:01
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-packag=
es/matplotlib/pylab.py
in plot(*args=3D(array([3, 4, 5, 6]), array([ 9, 16, 25, 36])),
**kwargs=3D{})
 2020 def plot(*args, **kwargs):
 2021 # allow callers to override the hold state by passing
hold=3DTrue|False
-> 2022 b =3D ishold()
 b =3D undefined
 global ishold =3D <function ishold at 0x3061c30>
 2023 h =3D popd(kwargs, 'hold', None)
 2024 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/pylab.py
in ishold()
 896 Return the hold status of the current axes
 897 """
--> 898 return gca().ishold()
 global gca.ishold =3D undefined
 899
 900 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/pylab.py
in gca(**kwargs=3D{})
 847 """
 848
--> 849 ax =3D gcf().gca(**kwargs)
 ax =3D undefined
 global gcf.gca =3D undefined
 kwargs =3D {}
 850 return ax
 851
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/pylab.py
in gcf()
 857 return figManager.canvas.figure
 858 else:
--> 859 return figure()
 global figure =3D <function figure at 0x3061af0>
 860
 861 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/pylab.py
in figure(num=3D1, figsize=3D[8.0, 6.0], dpi=3D80.0, facecolor=3D0.75,
edgecolor=3D'white', frameon=3DTrue)
 827 figManager.canvas.figure.number =3D num
 828
--> 829 draw_if_interactive()
 global draw_if_interactive =3D <function wrapper at 0x314d730>
 830 return figManager.canvas.figure
 831
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/IPython/genutils.py
in wrapper(*args=3D(), **kw=3D{})
 683 def wrapper(*args,**kw):
 684 wrapper.called =3D False
--> 685 out =3D func(*args,**kw)
 out =3D undefined
 global func =3D undefined
 args =3D ()
 kw =3D {}
 686 wrapper.called =3D True
 687 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/backends/backend_tkagg.py
in draw_if_interactive()
 57 figManager =3D Gcf.get_active()
 58 if figManager is not None:
---> 59 figManager.show()
 figManager.show =3D <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-packag=
es/matplotlib/backends/backend_tkagg.py
in show(self=3D<matplotlib.backends.backend_tkagg.FigureManagerTkAgg
instance at 0x3066e68>)
 295 if sys.platform=3D=3D'win32' : self.window.update()
 296 else:
--> 297 self.canvas.draw()
 self.canvas.draw =3D <bound method FigureCanvasTkAgg.draw of
<matplotlib.backends.backend_tkagg.FigureCanvasTkAgg instance at
0x30667d8>>
 298 self._shown =3D True
 299
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/backends/backend_tkagg.py
in draw(self=3D<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 =3D <function blit at 0x44df30>
 self._tkphoto =3D <Tkinter.PhotoImage instance at 0x30668f0>
 self.renderer._renderer =3D <RendererAgg object at 0x6223224>
 153 self._master.update_idletasks()
 154
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag=
es/matplotlib/backends/tkagg.py
in blit(photoimage=3D<Tkinter.PhotoImage instance at 0x30668f0>,
aggimage=3D<RendererAgg object at 0x6223224>, colormode=3D2)
 12 except AttributeError:
 13 _tkagg.tkinit(id(tk), 0)
---> 14 tk.call("PyAggImagePhoto", photoimage,
id(aggimage), colormode)
 tk.call =3D <built-in method call of tkapp object at 0x30586e8>
 photoimage =3D <Tkinter.PhotoImage instance at 0x30668f0>
 global id =3D undefined
 aggimage =3D <RendererAgg object at 0x6223224>
 colormode =3D 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/sit=
e-packages/matplotlib/backends/backend_tkagg.py",
line 148, in resize
 self.show()
 File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sit=
e-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/sit=
e-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
From: Chris F. <fon...@gm...> - 2005年12月03日 22:34:02
I am trying to compile matplotlib with scipy_core (latest release),
rather than Numeric or nunmarray. However, I get the following error
when trying to build:
Traceback (most recent call last):
 File "setup.py", line 110, in ?
 raise RuntimeError("You must install Numeric, numarray, or both to
build matplotlib")
RuntimeError: You must install Numeric, numarray, or both to build matplotl=
ib
Is there no way to base matplotlib on scipy_core?
Thanks,
--
Chris Fonnesbeck
Atlanta, GA
From: Fernando P. <Fer...@co...> - 2005年12月03日 23:27:43
Chris Fonnesbeck wrote:
> I am trying to compile matplotlib with scipy_core (latest release),
> rather than Numeric or nunmarray. However, I get the following error
> when trying to build:
> 
> Traceback (most recent call last):
> File "setup.py", line 110, in ?
> raise RuntimeError("You must install Numeric, numarray, or both to
> build matplotlib")
> RuntimeError: You must install Numeric, numarray, or both to build matplotlib
> 
> Is there no way to base matplotlib on scipy_core?
Chris, are you using Daishi's patches? I'm not quite sure if they're in CVS 
yet, but it's certain that you can NOT build mpl 0.85 + scipy_core without them.
Cheers,
f
From: Eric F. <ef...@ha...> - 2005年12月03日 23:36:06
Best to hold off for a little while. The patch was committed to CVS, 
but turned out to have a major problem, so John is working on it.
Eric
Fernando Perez wrote:
> Chris Fonnesbeck wrote:
> 
>> I am trying to compile matplotlib with scipy_core (latest release),
>> rather than Numeric or nunmarray. However, I get the following error
>> when trying to build:
>>
>> Traceback (most recent call last):
>> File "setup.py", line 110, in ?
>> raise RuntimeError("You must install Numeric, numarray, or both to
>> build matplotlib")
>> RuntimeError: You must install Numeric, numarray, or both to build 
>> matplotlib
>>
>> Is there no way to base matplotlib on scipy_core?
> 
> 
> Chris, are you using Daishi's patches? I'm not quite sure if they're in 
> CVS yet, but it's certain that you can NOT build mpl 0.85 + scipy_core 
> without them.
> 
> Cheers,
> 
> f
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Stephen W. <ste...@cs...> - 2005年10月02日 23:33:44
Chris Fonnesbeck wrote:
>Any idea how easy it will be to use matplotlib with scipy_core?
>
At the moment it looks trivial. I have matplotlib 0.84 and "new scipy" 
installed and did:
ipython -pylab
import scipy as S
x=S.arange(10)
plot(x,x**2)
and got a plot.
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 によって変換されたページ (->オリジナル) /