How should I be formatting this tuple if I want it to plot each graph
in a different color but in the same plot graph?
It works when it's all the same color i.e.
y = plot(a, min_x, max_x, rgbcolor='red').
but this does not work:
{{{
a = (sin(x)^2, cos(x)^2, sin(x)^2+cos(x)^2)
color = ('red','blue','purple')
min_x = 0
max_x = 2 * pi
y = plot(a, min_x, max_x, rgbcolor=color)
y.show()
\\\
ValueError: invalid literal for float(): red
}}}
Also: How do I comment out a line of code in the command line?
i.e. in PHP or java it is
// Line of code here is commented
Thanks,
James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---