Nautical - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Nautical Color Palette

Description

 • The Nautical plot palette is a dark subdued selection of colors chosen to evoke a maritime feel. It is designed for coloring collections of lines. There are seven main colors in the palette as well as nine more named colors.
 > ColorTools:-DisplayPalette("Nautical",noextend);

 1. GrayBlue 2. Red 3. DarkGray 4. Olive 5. LightBlue 6. Gray 7. GrayViolet 8. DarkGreen 9. DarkBlue 10. PaleRed 11. DarkPurpleRed 12. PaleGreenBlue 13. DarkOrange 14. PaleBluePurple 15. DarkPurple 16. PaleGreen

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["Nautical 1","Nautical Red"\right]\right)$
 > $C≔\mathrm{ColorTools}:-\mathrm{Color}\left("Nautical 10"\right)$
 ${C}{≔}{⟨}\colorbox[rgb]{0.741176470588235,0.494117647058824,0.470588235294118}{RGB : 0.741 0.494 0.471}{⟩}$ (1)

You can make Nautical the default palette in plots using setcolors

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

You can programatically access the colors using ColorTools commands

 > $P≔\mathrm{ColorTools}:-\mathrm{GetPalette}\left("Nautical"\right)$
 ${P}{≔}⟨{Palette Nautical:}{}\colorbox[rgb]{0.2,0.301960784313725,0.392156862745098}{{GrayBlue}}{}\colorbox[rgb]{0.631372549019608,0.0156862745098039,0.0431372549019608}{{Red}}{}\colorbox[rgb]{0.2,0.2,0.2}{{DarkGray}}{}\colorbox[rgb]{0.305882352941176,0.388235294117647,0.2}{{Olive}}{}\colorbox[rgb]{0.470588235294118,0.603921568627451,0.741176470588235}{LightBlue}{}\colorbox[rgb]{0.4,0.4,0.4}{{Gray}}{}\colorbox[rgb]{0.309803921568627,0.309803921568627,0.443137254901961}{{GrayViolet}}{}\colorbox[rgb]{0.0666666666666667,0.631372549019608,0.0156862745098039}{{DarkGreen}}{}\colorbox[rgb]{0.0509803921568627,0.0156862745098039,0.631372549019608}{{DarkBlue}}{}\colorbox[rgb]{0.741176470588235,0.494117647058824,0.470588235294118}{PaleRed}{}\colorbox[rgb]{0.631372549019608,0.0156862745098039,0.274509803921569}{{DarkPurpleRed}}{}\colorbox[rgb]{0.470588235294118,0.705882352941177,0.741176470588235}{PaleGreenBlue}{}\colorbox[rgb]{0.631372549019608,0.443137254901961,0.0156862745098039}{DarkOrange}{}\colorbox[rgb]{0.666666666666667,0.470588235294118,0.741176470588235}{PaleBluePurple}{}\colorbox[rgb]{0.615686274509804,0.0156862745098039,0.631372549019608}{{DarkPurple}}{}\colorbox[rgb]{0.309803921568627,0.443137254901961,0.403921568627451}{{PaleGreen}}⟩$ (2)
 > $P\left[1\right]$
 ${⟨}\colorbox[rgb]{0.2,0.301960784313725,0.392156862745098}{{RGB : Gray Blue}}{⟩}$ (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]$
 ${⟨}\colorbox[rgb]{0.741176470588235,0.67843137254902,0.470588235294118}{RGB : 0.741 0.677 0.471}{⟩}$ (5)

The Nautical 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)$
 ${⟨}\colorbox[rgb]{0.313725490196078,0.411764705882353,0.501960784313725}{{RGB : 0.315 0.411 0.501}}{⟩}$ (6)
 > $\mathrm{Lookup}\left(P,1,\mathrm{shade}="point"\right)$
 ${⟨}\colorbox[rgb]{0.137254901960784,0.243137254901961,0.333333333333333}{{RGB : 0.136 0.243 0.333}}{⟩}$ (7)