Niagara Color Palette - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : ColorTools : Color Collections : ColorTools/Collection/Niagara

Niagara Color Palette

Description

 • 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

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["Niagara 1","Niagara Navy"\right]\right)$
 > $C≔\mathrm{ColorTools}:-\mathrm{Color}\left("Niagara 10"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.56862745}{,}{0.25490196}{,}{0.29019608}\right]\right)$ (1)

You can make Niagara the default palette in plots using setcolors

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

You can programatically access the colors using ColorTools commands

 > $P≔\mathrm{ColorTools}:-\mathrm{GetPalette}\left("Niagara"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Palette}}{}\left(\left[{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}{,}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{...}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}\right]{,}\left[{"Burgundy"}{,}{"Navy"}{,}{"LeafGreen"}{,}{"Azure"}{,}{"Purple"}{,}{"BlueGreen"}{,}{"Violet"}{,}{"DeepBlue"}{,}{"Cinnamon"}{,}{"PaleRed"}{,}{"GreenishBlue"}{,}{"DarkRose"}{,}{"BluishGreen"}{,}{"DarkOrchid"}{,}{"BluishPurple"}{,}{"Olive"}\right]{,}\left[{"Orange"}{=}{"Cinnamon"}{,}{"Blue"}{=}{"Navy"}{,}{"Cyan"}{=}{"Azure"}{,}{"Green"}{=}{"LeafGreen"}{,}{"Red"}{=}{"Burgundy"}\right]{,}{\mathrm{palettename}}{=}{"Niagara"}{,}{\mathrm{palettetype}}{=}{"line"}\right)$ (2)
 > $P\left[1\right]$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.47058824}{,}{0.}{,}{0.054901961}\right]{,}{\mathrm{caption}}{=}{"Burgundy"}\right)$ (3)
 > $n≔\mathrm{numcolors}\left(P\right)$
 ${n}{≔}{16}$ (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)$

ColorTools algorithms will automatically generate new colors beyond the main 16 colors:

 > $P\left[20\right]$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.3316074807}{,}{0.5354549099}{,}{0.8878111301}\right]\right)$ (5)

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.

 > $\mathrm{Lookup}\left(P,1,\mathrm{shade}="fill"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.52374211}{,}{0.14984970}{,}{0.13365410}\right]\right)$ (6)
 > $\mathrm{Lookup}\left(P,1,\mathrm{shade}="point"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.42165206}{,}{0.017786126}{,}{0.049195729}\right]\right)$ (7)
 >