Home > Options -> color



Color option for plots: See also: plot3d-options

Syntax: color='red' or color=(1,0,0) or ...
Syntax: color="darkkhaki' or color=(0.74,0.72,0.42)

Example 1:
blank15.png
P1=plot(x^2, color="darkkhaki", thickness=5)
P2=plot(0.4, color=(0.74,0.72,0.42), thickness=5)
show(P1+P2, figsize=3)

colors.png


Here is a list of colors that Sage recognizes.
sage: sorted(colors)
['aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'automatic', ...]
['aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'automatic','azure', 'beige', 'bisque', 'black', 'blanchedalmond', 'blue','blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse','chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan','darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen','darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange','darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue','darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue',
'firebrick', 'floralwhite', 'forestgreen', 'fuchsia', 'gainsboro','ghostwhite', 'gold', 'goldenrod', 'gray', 'green', 'greenyellow','grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki','lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue','lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray','lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'lime', 'limegreen', 'linen', 'magenta', 'maroon','mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen','mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream','mistyrose', 'moccasin', 'navajowhite', 'navy', 'oldlace', 'olive', 'olivedrab', 'orange', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple', 'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'silver', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'teal', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'white','whitesmoke', 'yellow', 'yellowgreen']


Source: http://www.sagemath.org/doc/reference/sage/plot/colors.html