On 7/31/06, João Quinta da Fonseca <[EMAIL PROTECTED]> 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users