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
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
>>>>> "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
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