Spring Color Palette
Description
Examples
The Spring plot palette is a bright selection of colors chosen to evoke the flowering plants of spring. It is designed for coloring collections of lines. There are six main colors in the palette as well as ten more named colors.
ColorTools:-DisplayPalette("Spring",noextend);
1. Blue
2. Rose
3. YellowGreen
4. BlueGreen
5. Violet
6. Cobalt
7. Yellow
8. PurpleRed
9. GreenBlue
10. PaleGreen
11. Orange
12. Purple
13. Green
14. SeaBlue
15. PaleYellow
16. PaleBlueGreen
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=Spring 2,Spring Blue
C≔ColorTools:-Color⁡Spring 10
C≔〈RGB : 0.294 0.651 0.451〉
You can make Spring the default palette in plots using setcolors
plots:-setcolors⁡Spring:
You can programatically access the colors using ColorTools commands
P≔ColorTools:-GetPalette⁡Spring
P≔Palette Spring:⁢Blue⁢Rose⁢YellowGreen⁢BlueGreen⁢Violet⁢Cobalt⁢Yellow⁢PurpleRed⁢GreenBlue⁢PaleGreen⁢Orange⁢Purple⁢Green⁢SeaBlue⁢PaleYellow⁢PaleBlueGreen
P1
〈RGB : Blue〉
n≔numcolors⁡P
n≔16
plot⁡seq⁡sin⁡x+i⁢πn,i=1..n,x=0..2⁢π,axes=boxed,color=:-GetColors⁡P1..n,legend=:-GetColorNames⁡P1..n,numpoints=25,style=line
ColorTools algorithms will automatically generate new colors beyond the main 16 colors:
P20
〈RGB : 0.268 0.408 0.317〉
The Spring palette is designed for lines, but the Lookup command can provide slightly altered shades of its colors for use in coloring points or filling regions.
Lookup⁡P,1,shade=fill
〈RGB : 0.217 0.558 0.898〉
Lookup⁡P,1,shade=point
〈RGB : 0 0.402 0.718〉
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
plots[setcolors]
Download Help Document