> $ python
>>>> from sympy import *
>>>> x = Symbol('x')
>>>> plot(x*x)
>
> Try using a "pure" python interpreter instead of whatever Sage is launching.
On the one hand, normally (!) "sage -ipython" is really a pure python
interpreter ; on the other hand, my system's python does not have
matplotlib, so there's no way it's going to work.
Mind you, i've just tried on a linux machine under virtual box, it has
sympy and matplotlib working with the basic system's python, and it
all works fine!
So, as it turns out, you're right: "sage -ipython" does something
funny, with respect to matplotlib. It may be a normal feature, when
you think that under (standard) sage, the matplotlib plots do not open
a dedicated matplotlib window, just the system's image viewer, opened
on a temp .png file.
OK, so I understand pretty well what goes on. The thing is, I wanted
to tell my students that installing sympy+matplotlib (+numpy) was
super easy on any machine, and for Mac OSX my advice was to install
Sage, since installing matplotlib on a Mac is a f****ing nightmare
(last time I looked, anyway).
I wonder what Mac OSX users are advised to do, when wanting to work
with sympy+matplotlib: install anaconda?
anyway, thanks for your help. And yes, I noticed sympy gamma, it does do plots !
cheers
Pierre
>
https://groups.google.com/d/msgid/sympy/CAP7f1AjiaCfWRmvaCAXjwt8CPoNEQymihXcOMboem_1t-tO%2BTQ%40mail.gmail.com.