OldPlots - Maple Help

OldPlots Color Palette

Description

 • The OldPlots palette is the selection of colors used as the default plot colors in older versions of Maple.
 > ColorTools:-DisplayPalette("OldPlots");

 1. Red 2. LimeGreen 3. Goldenrod 4. Blue 5. MediumOrchid 6. DarkTurquoise

Examples

You can reference colors in the palette by name or number in most commands that understand color names.

 > $\mathrm{plot}\left(\left[x,{x}^{3}\right],x=-1..1,\mathrm{color}=\left["OldPlots 2","OldPlots Blue"\right]\right)$
 > $C≔\mathrm{ColorTools}:-\mathrm{Color}\left("OldPlots 6"\right)$
 ${C}{≔}{⟨}\colorbox[rgb]{0,0.807843137254902,0.819607843137255}{RGB : 0 0.808 0.82}{⟩}$ (1)

You can make OldPlots the default palette in plots using setcolors

 > $\mathrm{plots}:-\mathrm{setcolors}\left("OldPlots"\right):$

You can programatically access the colors using ColorTools commands

 > $P≔\mathrm{ColorTools}:-\mathrm{GetPalette}\left("OldPlots"\right)$
 ${P}{≔}⟨{Palette OldPlots:}{}\colorbox[rgb]{1,0,0}{{Red}}{}\colorbox[rgb]{0.196078431372549,0.803921568627451,0.196078431372549}{LimeGreen}{}\colorbox[rgb]{0.854901960784314,0.647058823529412,0.125490196078431}{Goldenrod}{}\colorbox[rgb]{0,0,1}{{Blue}}{}\colorbox[rgb]{0.729411764705882,0.333333333333333,0.827450980392157}{MediumOrchid}{}\colorbox[rgb]{0,0.807843137254902,0.819607843137255}{DarkTurquoise}⟩$ (2)
 > $P\left[1\right]$
 ${⟨}\colorbox[rgb]{1,0,0}{{RGB : Red}}{⟩}$ (3)
 > $n≔\mathrm{numcolors}\left(P\right)$
 ${n}{≔}{6}$ (4)
 > $\mathrm{plot}\left(\left[\mathrm{seq}\left(\mathrm{sin}\left(x+\frac{i\mathrm{\pi }}{n}\right),i=1..n\right)\right],x=0..2\mathrm{\pi },\mathrm{axes}=\mathrm{boxed},\mathrm{color}=:-\mathrm{GetColors}\left(P\right)\left[1..n\right],\mathrm{legend}=:-\mathrm{GetColorNames}\left(P\right)\left[1..n\right],\mathrm{numpoints}=25,\mathrm{style}=\mathrm{line}\right)$