On Sun, Jul 7, 2013 at 5:02 AM, Stefan Krastanov <[email protected]> wrote: > A small correction: It is not a matplotlib object. However, if you use > the matplotlib backend > you can access the encapsulated matplotlib objects through `p._backend`.
Indeed, thanks guys. > > On 6 July 2013 20:43, Aaron Meurer <[email protected]> wrote: >> Yes, our documentation for plot() could be better (pull requests welcome!). >> Basically, plot(show=False) just returns the matplotlib object, and so you >> can call all the normal matplotlib functions on it. >> >> Aaron Meurer >> >> >> On Sat, Jul 6, 2013 at 12:31 PM, Amit Saha <[email protected]> wrote: >>> >>> This is something which was not obvious to me (or I don't read well), >>> so posting it in case it helps someone: >>> >>> >>> from sympy import plot >>> >>> from sympy import Symbol >>> >>> >>> x=Symbol('x') >>> >>> p = plot(2*x+3,show=False) >>> >>> Now, you have a object of the Plot class returned in p. >>> >>> So, you can either see the graph now: >>> >>> p.show() >>> >>> Or save it: >>> >>> >>> p.save('/tmp/foo1.png') >>> >>> -- >>> 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. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >> >> -- >> 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. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > > -- http://echorand.me -- 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. For more options, visit https://groups.google.com/groups/opt_out.
