OldPlots Color Palette
Description
Examples
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
You can reference colors in the palette by name or number in most commands that understand color names.
plot([x,x^3], x=-1..1, color=["OldPlots 2", "OldPlots Blue"]);
C := ColorTools:-Color("OldPlots 6");
ColorTools:-Color⁡RGB,0.,0.80784314,0.81960784
You can make OldPlots the default palette in plots using setcolors
plots:-setcolors("OldPlots"):
You can programatically access the colors using ColorTools commands
P := ColorTools:-GetPalette("OldPlots");
ColorTools:-Palette⁡module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,Red,LimeGreen,Goldenrod,Blue,MediumOrchid,DarkTurquoise,Cyan=DarkTurquoise,Purple=MediumOrchid,Yellow=Goldenrod,Green=LimeGreen,palettename=OldPlots,palettetype=dictionary
P[1];
ColorTools:-Color⁡RGB,1.00000000,0.,0.,caption=Red
n := numcolors(P);
n≔6
plot([seq(sin(x+i*Pi/n), i = 1 .. n)], x = 0 .. 2*Pi, axes = boxed, color = :-GetColors(P)[1 .. n], legend = :-GetColorNames(P)[1 .. n], numpoints = 25, style = line);
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
plots[setcolors]
Download Help Document
What kind of issue would you like to report? (Optional)