Niagara Color Palette
Description
Examples
The Niagara plot palette is a subdued selection of colors inspired by Canada's Niagara wine region. It is designed for coloring collections of lines. There are nine main colors in the palette as well as seven more named colors.
ColorTools:-DisplayPalette("Niagara",noextend);
1. Burgundy
2. Navy
3. LeafGreen
4. Azure
5. Purple
6. BlueGreen
7. Violet
8. DeepBlue
9. Cinnamon
10. PaleRed
11. GreenishBlue
12. DarkRose
13. BluishGreen
14. DarkOrchid
15. BluishPurple
16. Olive
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=Niagara 1,Niagara Navy
C ≔ ColorTools:-Color⁡Niagara 10
ColorTools:-Color⁡RGB,0.56862745,0.25490196,0.29019608
You can make Niagara the default palette in plots using setcolors
plots:-setcolors⁡Niagara:
You can programatically access the colors using ColorTools commands
P ≔ ColorTools:-GetPalette⁡Niagara
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,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,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,Burgundy,Navy,LeafGreen,Azure,Purple,BlueGreen,Violet,DeepBlue,Cinnamon,PaleRed,GreenishBlue,DarkRose,BluishGreen,DarkOrchid,BluishPurple,Olive,Blue=Navy,Green=LeafGreen,Cyan=Azure,Red=Burgundy,Orange=Cinnamon,palettename=Niagara,palettetype=line
P1
ColorTools:-Color⁡RGB,0.47058824,0.,0.054901961,caption=Burgundy
n ≔ numcolors⁡P
n≔16
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
ColorTools algorithms will automatically generate new colors beyond the main 16 colors:
P20
ColorTools:-Color⁡RGB,0.003202611000322153,−0.00140126699975425,0.006749287998835535
The Niagara 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
ColorTools:-Color⁡RGB,0.6253728,0.1505147,0.1508953
Lookup⁡P,1,shade=point
ColorTools:-Color⁡RGB,0.3571578,0.,0.03202898
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
plots[setcolors]
Download Help Document