Stan Schymanski wrote:
> The following displays a plot in my notebook (Sage3.4) if I put it all
> in the same cell:
>
> sage: var('t'); # symbolic variable
> sage: var('g'); # symbolic variable
> sage: f(t) = g*(t**2-1)/(2*(t-1)) # try to simplify this function later...
> sage: plot(f.subs(g=9.81), 0, 10)
>
> Does this not work for you?
>
> Stan
>
>
> Jose Guzman wrote:
>
>>
>>
>>> By the way, if you type
>>>
>>> sage: plot(f.subs(g=9.81), 0, 10)
>>>
>>> then the plot will be displayed -- you don't need to save the plot and
>>> then 'show' it.
>>>
>>>
>>>
>>>
>>>
>> I tried this and it works only with the console. If you use the notebook
>> you have to use the show() command. Anyway, thank you very much for the
>> tip!!1
>>
>> Jose.
>>
>>
>>
>>
>
>
> >
>
Yes it works! for some strange reason it did not work in my old sheet. I
though to plot one should use a combination of plot() and show()
commands. Actually, I created a small tutorial for private use to learn
more about sage commands to plot, which talks about the use of plot()
and show(). I expected to use it for my future curse of Sage for
scientist in my institute. :P You can see in http://sagenb.org/home/pub/399
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---