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 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
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(x^3, (x,0,1), color=blue.darker()) plot(x^4, (x,0,1), color=green.lighter()) plot(x^5, (x,0,1), color=red+blue) #gives purple :) and then for the more esoteric names (all of the standard web colors, all of the standard x11 colors, etc.), use the color namespace. plot(sin(x), (x,0,1), color=color.goldenrod) Thoughts? Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
