On Sun, Jul 7, 2013 at 4:43 AM, 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.

Okay, I will try to go over the documentation for sending a pull
request and will try to make some small contributions.


>
> 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.
>
>



--
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 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.


Reply via email to