You should ask on the sage list about that. Maybe there is an option to
revert back to normal matplotlib windows.

I would recommend having the students install anaconda. This works cross
platform and all the scientific Python stuff just works. You can even
install miniconda and only install sympy + matplotlib to avoid the giant
Sage or Anaconda download.


Jason
moorepants.info
+01 530-601-9791

On Wed, Jul 1, 2015 at 3:02 PM, Pierre Guillot <[email protected]>
wrote:

> > $ 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
>
>
>
>
>
>
>
>
> >
> > And the plots will not show up on sympy live. We do have some plotting
> > functionality on sympy gamma though.
> >
> >
> > Jason
> > moorepants.info
> > +01 530-601-9791
> >
> > On Wed, Jul 1, 2015 at 2:24 PM, Pierre Guillot <[email protected]
> >
> > wrote:
> >>
> >> I have just tried "from sympy.plotting import plot" but it does not
> >> seem any different from the plot command that I had by doing "from
> >> sympy import *" (as I indicated in my original post)
> >>
> >> 2015-07-01 23:17 GMT+02:00 Jason Moore <[email protected]>:
> >> > Are you using the sympy plot command?
> >> >
> >> > from sympy.plotting import plot
> >> >
> >> > http://docs.sympy.org/dev/modules/plotting.html
> >> >
> >> >
> >> >
> >> >
> >> > Jason
> >> > moorepants.info
> >> > +01 530-601-9791
> >> >
> >> > On Wed, Jul 1, 2015 at 1:34 PM, Pierre Guillot
> >> > <[email protected]>
> >> > wrote:
> >> >>
> >> >> >SymPy should automatically detect the presence of matplotlib and use
> >> >> > it.
> >> >> >Do you have it installed locally?
> >> >>
> >> >> well, "import matplotlib" works. And plots in sage work.
> >> >>
> >> >> by the way, when plots in sympy "work", is it the same mechanism as
> in
> >> >> Sage, that is, the plot is saved to a temporary file and opened in a
> >> >> new
> >> >> window with the system's viewer? Perhaps I should have made it 100%
> >> >> clear
> >> >> that I'm using the command line, not a notebook or anything.
> >> >>
> >> >> --
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups
> >> >> "sympy" group.
> >> >> To unsubscribe from this group and stop receiving emails from it,
> send
> >> >> an
> >> >> email to [email protected].
> >> >> To post to this group, send email to [email protected].
> >> >> Visit this group at http://groups.google.com/group/sympy.
> >> >> To view this discussion on the web visit
> >> >>
> >> >>
> https://groups.google.com/d/msgid/sympy/58b30267-51c8-4a1e-9430-a2bcb90cfd64%40googlegroups.com
> .
> >> >>
> >> >> For more options, visit https://groups.google.com/d/optout.
> >> >
> >> >
> >> > --
> >> > You received this message because you are subscribed to a topic in the
> >> > Google Groups "sympy" group.
> >> > To unsubscribe from this topic, visit
> >> > https://groups.google.com/d/topic/sympy/-j56ppfR7kw/unsubscribe.
> >> > To unsubscribe from this group and all its topics, send an email to
> >> > [email protected].
> >> > To post to this group, send email to [email protected].
> >> > Visit this group at http://groups.google.com/group/sympy.
> >> > To view this discussion on the web visit
> >> >
> >> >
> https://groups.google.com/d/msgid/sympy/CAP7f1AiNbJ%3Dvi1cu%3D-Z_-vmTTXkK6iqwOa05kAR8beypEBN4Ew%40mail.gmail.com
> .
> >> >
> >> > For more options, visit https://groups.google.com/d/optout.
> >>
> >>
> >>
> >> --
> >> Pierre
> >> 06 06 40 72 28
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "sympy" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> To post to this group, send email to [email protected].
> >> Visit this group at http://groups.google.com/group/sympy.
> >> To view this discussion on the web visit
> >>
> https://groups.google.com/d/msgid/sympy/CAJ0QLpbHthXQ0xD%3DuJ%2B5fUZOoc8v4abBnogRKtS4OsRrvBoVdA%40mail.gmail.com
> .
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "sympy" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/sympy/-j56ppfR7kw/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to
> > [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/sympy.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sympy/CAP7f1AjiaCfWRmvaCAXjwt8CPoNEQymihXcOMboem_1t-tO%2BTQ%40mail.gmail.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Pierre
> 06 06 40 72 28
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAJ0QLpYdSTnptrs2gMDxLOG8wCg9oY3wr0wF67F-yohqc6uUCA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAP7f1Agp5fx6Of6fV_-Zk0WFGJA44xpTZkeEQOcofSRYiApN_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to