[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jason Grout
Robert Bradshaw wrote: >> >> * predefining a bunch of colors in the global namespace (maybe just >> what >> is available in the current strings?) > > I like all your comments but this one--the global namespace is huge > enough as it is. Also, colors.* gives nice tab completion, etc. I > co

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Robert Bradshaw
On Mar 24, 2009, at 11:03 AM, Jason Grout wrote: > William Stein wrote: >> On Tue, Mar 24, 2009 at 9:27 AM, Jason Grout >> wrote: >>> Jose Guzman wrote: kcrisman wrote: >> In looking at your code, I had an idea about specifying >> colors. Why >> don't we have some default col

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread William Stein
On Tue, Mar 24, 2009 at 11:03 AM, Jason Grout wrote: > > William Stein wrote: >> On Tue, Mar 24, 2009 at 9:27 AM, Jason Grout >> wrote: >>> Jose Guzman wrote: kcrisman wrote: >> In looking at your code, I had an idea about specifying colors.  Why >> don't we have some default color

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jason Grout
William Stein wrote: > On Tue, Mar 24, 2009 at 9:27 AM, Jason Grout > wrote: >> Jose Guzman wrote: >>> kcrisman wrote: > In looking at your code, I had an idea about specifying colors. Why > don't we have some default color objects defined in Sage, like red, > blue, yellow, green, et

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread William Stein
On Tue, Mar 24, 2009 at 9:27 AM, Jason Grout wrote: > > Jose Guzman wrote: >> kcrisman wrote: >>> In looking at your code, I had an idea about specifying colors.  Why don't we have some default color objects defined in Sage, like red, blue, yellow, green, etc.  Methods could includ

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jason Grout
Jose Guzman wrote: > kcrisman wrote: >> >>> In looking at your code, I had an idea about specifying colors. Why >>> don't we have some default color objects defined in Sage, like red, >>> blue, yellow, green, etc. Methods could include .darker(), .lighter(), >>> etc. So you could specify a p

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jose Guzman
kcrisman wrote: > > >> In looking at your code, I had an idea about specifying colors. Why >> don't we have some default color objects defined in Sage, like red, >> blue, yellow, green, etc. Methods could include .darker(), .lighter(), >> etc. So you could specify a plot as: >> >> plot(x^2,

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread kcrisman
> In looking at your code, I had an idea about specifying colors.  Why > don't we have some default color objects defined in Sage, like red, > blue, yellow, green, etc.  Methods could include .darker(), .lighter(), > etc.  So you could specify a plot as: > > plot(x^2, (x,0,1), color=red) > plot(

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jose Guzman
Jason Grout wrote: > Jose Guzman wrote: > > >> 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 t

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jason Grout
Jose Guzman wrote: > 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 u

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jason Grout
Jose Guzman wrote: > 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 u

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jose Guzman
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.8

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Stan Schymanski
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 y

[sage-support] Re: Problem plotting a function with plot()

2009-03-24 Thread Jose Guzman
> > 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 yo

[sage-support] Re: Problem plotting a function with plot()

2009-03-23 Thread Jose Guzman
John H Palmieri wrote: > On Mar 23, 3:31 pm, John H Palmieri wrote: > >> On Mar 23, 3:10 pm, Jose Guzman wrote: >> >> >> >> >> >> >>> Dear Sage users and developers, >>> >>> I am using Sage version 3.4 running on Linux/Debian. I am still not very >>> familiar with Sage though. I t

[sage-support] Re: Problem plotting a function with plot()

2009-03-23 Thread Jose Guzman
wrote: > On Mar 23, 3:10 pm, Jose Guzman wrote: > >> Dear Sage users and developers, >> >> I am using Sage version 3.4 running on Linux/Debian. I am still not very >> familiar with Sage though. I tried to plot the following equation: >> >> sage: var('t'); # symbolic variable >> sage: var('g'

[sage-support] Re: Problem plotting a function with plot()

2009-03-23 Thread John H Palmieri
On Mar 23, 3:31 pm, John H Palmieri wrote: > On Mar 23, 3:10 pm, Jose Guzman wrote: > > > > > > > Dear Sage users and developers, > > > I am using Sage version 3.4 running on Linux/Debian. I am still not very > > familiar with Sage though. I tried to plot the following equation: > > > sage: var(

[sage-support] Re: Problem plotting a function with plot()

2009-03-23 Thread John H Palmieri
On Mar 23, 3:10 pm, Jose Guzman wrote: > Dear Sage users and developers, > > I am using Sage version 3.4 running on Linux/Debian. I am still not very > familiar with Sage though. I tried to plot the following equation: > > sage: var('t'); # symbolic variable > sage: var('g'); # symbolic variable