SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: <joa...@gm...> - 2006年07月31日 14:08:03
I'm trying to quit Matlab and use python fro my data analysis. I have 
installed the latest MacPython (universal), wxpython, aggdraw and 
matplotlib from pythonmac.org. Everything seems to work, apart from 
matplotlib. Running from ipython:
In [1]: from pylab import *
In [2]: plot([1,2,3,4])
I get:
Out[2]: [<matplotlib.lines.Line2D instance at 0x4ddfb70>]
but nothing appears, not even an error message. I get a bouncing 
anvil (MacPython logo) on the dock but nothing happens.
If I run python in verbose mode I get:
plot([1,2,3])
import MacOS # dynamically loaded from /Library/Frameworks/ 
Python.framework/Versions/2.4/lib/python2.4/lib-dynload/MacOS.so
[<matplotlib.lines.Line2D instance at 0x4c9eaa8>]
unfortunately this means nothing to me. Can anyone help? Thanks,
Joao
From: <joa...@ma...> - 2006年07月31日 14:01:29
I'm trying to quit Matlab and use python fro my data analysis. I have 
installed the latest MacPython (universal), wxpython, aggdraw and 
matplotlib from pythonmac.org. Everything seems to work, apart from 
matplotlib. Running from ipython:
In [1]: from pylab import *
In [2]: plot([1,2,3,4])
I get:
Out[2]: [<matplotlib.lines.Line2D instance at 0x4ddfb70>]
but nothing appears, not even an error message. I get a bouncing 
anvil (MacPython logo) on the dock but nothing happens.
If I run python in verbose mode I get:
plot([1,2,3])
import MacOS # dynamically loaded from /Library/Frameworks/ 
Python.framework/Versions/2.4/lib/python2.4/lib-dynload/MacOS.so
[<matplotlib.lines.Line2D instance at 0x4c9eaa8>]
unfortunately this means nothing to me. Can anyone help? Thanks,
Joao
From: John H. <jdh...@ac...> - 2006年07月31日 14:10:04
>>>>> "Jo=E3o" =3D=3D Jo=E3o Quinta da Fonseca <joa...@gm...>=
 writes:
 Jo=E3o> I'm trying to quit Matlab and use python fro my data
 Jo=E3o> analysis. I have installed the latest MacPython (universal),
 Jo=E3o> wxpython, aggdraw and matplotlib from
 Jo=E3o> pythonmac.org. Everything seems to work, apart from
 Jo=E3o> matplotlib. Running from ipython:
 Jo=E3o> In [1]: from pylab import * In [2]: plot([1,2,3,4])
Did you launch ipython in pylab mode?
 > ipython -pylab
If so you don't need to import pylab and your figures your should work
as expected.
See http://matplotlib.sf.net/interactive.html for details.
JDH
From: Charlie M. <cw...@gm...> - 2006年07月31日 14:21:02
On 7/31/06, Jo=E3o Quinta da Fonseca <joa...@gm...> wrote:
> I'm trying to quit Matlab and use python fro my data analysis. I have
> installed the latest MacPython (universal), wxpython, aggdraw and
> matplotlib from pythonmac.org. Everything seems to work, apart from
> matplotlib. Running from ipython:
>
> In [1]: from pylab import *
> In [2]: plot([1,2,3,4])
>
> I get:
>
> Out[2]: [<matplotlib.lines.Line2D instance at 0x4ddfb70>]
>
> but nothing appears, not even an error message. I get a bouncing
> anvil (MacPython logo) on the dock but nothing happens.
> If I run python in verbose mode I get:
>
> plot([1,2,3])
> import MacOS # dynamically loaded from /Library/Frameworks/
> Python.framework/Versions/2.4/lib/python2.4/lib-dynload/MacOS.so
> [<matplotlib.lines.Line2D instance at 0x4c9eaa8>]
>
> unfortunately this means nothing to me. Can anyone help? Thanks,
For non-interactive pylab, just type "show()" after your code above.
The -pylab option John mentioned is the ideal way to go though.
- Charlie
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 によって変換されたページ (->オリジナル) /