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,x3,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⁡moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,Red,LimeGreen,Goldenrod,Blue,MediumOrchid,DarkTurquoise,Yellow=Goldenrod,Cyan=DarkTurquoise,Purple=MediumOrchid,Green=LimeGreen,palettename=OldPlots,palettetype=dictionary
P1
ColorTools:-Color⁡RGB,1.00000000,0.,0.,caption=Red
n ≔ numcolors⁡P
n≔6
plot⁡seq⁡sin⁡x+i⁢Pin,i=1..n,x=0..2⁢Pi,axes=boxed,color=:-GetColors⁡P1..n,legend=:-GetColorNames⁡P1..n,numpoints=25,style=line
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
plots[setcolors]
Download Help Document