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
|