colors

media type="custom" key="22064406" 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: P2=plot(0.4, color=(0.74,0.72,0.42), thickness=5) show(P1+P2, figsize=3) ||
 * [[image:blank15.png]] || P1=plot(x^2, color="darkkhaki", thickness=5)
 * || [[image:colors.png]] ||

Here is a list of colors that Sage recognizes. code format="shrunk" sage: sorted(colors) ['aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'automatic', ...] code ['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: []