Maple follows a standard list of colors, choosing the next color in the list for the next curve on that set of axes. The default color choices can be seen by calling the plots[setcolors] command with no arguments.
$\mathrm{plots}\left[\mathrm{setcolors}\right]\left(\right)$
$\left[{''\#78000E''}{\,}{''\#000E78''}{\,}{''\#4A7800''}{\,}{''\#3E578A''}{\,}{''\#780072''}{\,}{''\#00786A''}{\,}{''\#604191''}{\,}{''\#004A78''}{\,}{''\#784C00''}{\,}{''\#91414A''}{\,}{''\#3E738A''}{\,}{''\#78003B''}{\,}{''\#00783F''}{\,}{''\#914186''}{\,}{''\#510078''}{\,}{''\#777800''}\right]$
| (4.1) |
To change the default list, provide a new list of colors. The current color list is returned.
$\mathrm{plots}\left[\mathrm{setcolors}\right]\left(\left[''BlueViolet''\,''Coral''\right]\right)$
$\left[{''\#78000E''}{\,}{''\#000E78''}{\,}{''\#4A7800''}{\,}{''\#3E578A''}{\,}{''\#780072''}{\,}{''\#00786A''}{\,}{''\#604191''}{\,}{''\#004A78''}{\,}{''\#784C00''}{\,}{''\#91414A''}{\,}{''\#3E738A''}{\,}{''\#78003B''}{\,}{''\#00783F''}{\,}{''\#914186''}{\,}{''\#510078''}{\,}{''\#777800''}\right]$
| (4.2) |
Now plots will use the new color list.
$\mathrm{plot}\left(\left[\mathrm{sin}\left(x\right)\,\mathrm{sin}\left(2x\right)\right]comma;xequals;-\mathrm{pi;}..\mathrm{pi;}\right)$
Note: If you have more curves then colors in your list, those colors will be used again. Maple cycles through the list as often as required.
$\mathrm{plot}\left(\left[\mathrm{seq}\left(\mathrm{sin}\left(i\cdot x\right)\,i\=1..6\right)\right]\,xequals;-\mathrm{pi;}..\mathrm{pi;}\right)$
To reset the color list to the default colors, use:
$\mathrm{plots}\left[\mathrm{setcolors}\right]\left(\mathrm{default}\right)$
$\left[{''BlueViolet''}{\,}{''Coral''}\right]$
| (4.3) |
You can specify a list of color names or a palette. See plots[setcolors] for more information.