|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
matplotlibI'm using Python 26. I've never used numpy/matplotlib. I tried to
install, for the sake of a program I wanted to try. Numpy worked; matplotlib didn't. Is Matplotlib still a problem on 2.6? If so, what should I do about it? I am a Python user who doesn't much know Terminal stuff, though I can do the commands I'm commanded to do … Charles Hartman _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlibLet me rephrase that: I've found online notes about problems with
matplotlib under Python 2.6 in Windows. But I'm running Mac OS 10.5.8. I'm using the 2.6 framework from python.org. Is there a good way for me to get the current matplotlib running in this context? Charles On Oct 31, 2009, at 8:17 PM, Charles Hartman wrote: > I'm using Python 26. I've never used numpy/matplotlib. I tried to > install, for the sake of a program I wanted to try. Numpy worked; > matplotlib didn't. > > Is Matplotlib still a problem on 2.6? If so, what should I do about > it? I am a Python user who doesn't much know Terminal stuff, though > I can do the commands I'm commanded to do … > > Charles Hartman > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@... > http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlibDid you try one of the 2.6 installers from the sourceforge download page:
matplotlib-0.99.1.1-py2.6-macosx10.5.dmg matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg I think they should work with a python.org install. What was the error message you were getting when matplotlib didn't work? Recent versions should run fine on 2.6 as far as I know. You might want to try the matplotlib mailing list if you have more trouble. Robin On Sun, Nov 1, 2009 at 3:14 PM, Charles Hartman <charles.hartman@...> wrote: > Let me rephrase that: I've found online notes about problems with > matplotlib under Python 2.6 in Windows. But I'm running Mac OS 10.5.8. I'm > using the 2.6 framework from python.org. Is there a good way for me to get > the current matplotlib running in this context? > > Charles > > > On Oct 31, 2009, at 8:17 PM, Charles Hartman wrote: > >> I'm using Python 26. I've never used numpy/matplotlib. I tried to >> install, for the sake of a program I wanted to try. Numpy worked; >> matplotlib didn't. >> >> Is Matplotlib still a problem on 2.6? If so, what should I do about it? >> I am a Python user who doesn't much know Terminal stuff, though I can do >> the commands I'm commanded to do … >> >> Charles Hartman >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG@... >> http://mail.python.org/mailman/listinfo/pythonmac-sig > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@... > http://mail.python.org/mailman/listinfo/pythonmac-sig > Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlib> Did you try one of the 2.6 installers from the sourceforge download > page: > matplotlib-0.99.1.1-py2.6-macosx10.5.dmg > matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg > Yes -- dumb! I just downloaded the wrong (2.5) installer; wherever I originally got it, the 2.6 wasn't present. So now I've installed it, and I can do 'import matplotlib' in Python. But when I try to use it (on an example from the new "Natural Language Processing with Python"), here's what I get: >>> import matplotlib >>> text4.dispersion_plot(["citizens", "democracy", "freedom", "duties", "America"]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/nltk/text.py", line 452, in dispersion_plot dispersion_plot(self, words) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/nltk/draw/dispersion.py", line 25, in dispersion_plot raise ValueError('The plot function requires the matplotlib package.' ValueError: The plot function requires the matplotlib package.See http://matplotlib.sourceforge.net/ >>> Am I missing something just as obvious as before? _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlibOn Sun, Nov 1, 2009 at 3:50 PM, Charles Hartman
<charles.hartman@...> wrote: > > So now I've installed it, and I can do 'import matplotlib' in Python. But > when I try to use it (on an example from the new "Natural Language > Processing with Python"), here's what I get: > >>>> import matplotlib >>>> text4.dispersion_plot(["citizens", "democracy", "freedom", "duties", >>>> "America"]) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nltk/text.py", > line 452, in dispersion_plot > dispersion_plot(self, words) > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/nltk/draw/dispersion.py", > line 25, in dispersion_plot > raise ValueError('The plot function requires the matplotlib package.' > ValueError: The plot function requires the matplotlib package.See > http://matplotlib.sourceforge.net/ >>>> dispersion.py is trying to import pylab. So you could try "import pylab" in Python and see what error you get. Also you could try and plot something: from pylab import plot x = range(1) plot(x,x) But I do think either the NLTK or matplotlib mailing lists would be more appropriate for you to get help with this. Also I'd recommend using ipython if you want to work with matplotlib plots interactively. It's an interpreter that has much nicer behaviour for interactive work. Cheers Robin _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlibMatplotlib and some other scientific stuff didn't run with Python 2.6.x (you have to uese Python 2.5.x instaed). If yxou can read German you can read my rants about this stupid thing in my weblog: <http://www.schockwellenreiter.de/blog/2009/10/14/never-change-a-running-system/> and <http://www.schockwellenreiter.de/blog/2009/11/02/zwei-django-links/>.
HTH J"org -- Jörg Kantel <http://www.schockwellenreiter.de/> Mainzer Str. 19 -- 12053 Berlin-Neukölln Mail: joerg@... _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: matplotlibMany thanks. Got it all working. How I would have known that
dispersion.py was trying to import pylab I can't imagine; it doesn't appear anywhere in the traceback. But now I know and can plot along. I will do the NLTK list too. Charles >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ >> site-packages/nltk/text.py", >> line 452, in dispersion_plot >> dispersion_plot(self, words) >> File >> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ >> site-packages/nltk/draw/dispersion.py", >> line 25, in dispersion_plot >> raise ValueError('The plot function requires the matplotlib >> package.' >> ValueError: The plot function requires the matplotlib package.See >> http://matplotlib.sourceforge.net/ >>>>> > > dispersion.py is trying to import pylab. So you could try "import > pylab" in Python and see what error you get. > Also you could try and plot something: > from pylab import plot > x = range(1) > plot(x,x) > > But I do think either the NLTK or matplotlib mailing lists would be > more appropriate for you to get help with this. > > Also I'd recommend using ipython if you want to work with matplotlib > plots interactively. It's an interpreter that has much nicer behaviour > for interactive work. > > Cheers > > Robin _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
| Free embeddable forum powered by Nabble | Forum Help |