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`.
On 6 July 2013 20:43, Aaron Meurer <asmeu...@gmail.com> 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 <amitsaha...@gmail.com> 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 sympy+unsubscr...@googlegroups.com. >> To post to this group, send email to sympy@googlegroups.com. >> 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 sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.