Mono - Maple Help

Mono Color Palette

Description

 • The Mono plot palette is a sorted selection of shades of gray. It is designed for coloring filled areas. There are nine main shades in the palette as well as seven more named shades.
 > ColorTools:-DisplayPalette("Mono",noextend);

 1. BlackishGray 2. WhitishGray 3. NeutralGray 4. DarkGray 5. LightGray 6. LightNeutralGray 7. VeryDarkGray 8. VeryLightGray 9. DarkNeutralGray 10. Gray14 11. Gray71 12. Gray27 13. Gray56 14. Gray20 15. Gray64 16. Gray31

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["Mono BlackishGray","Mono 3"\right]\right)$
 > $C≔\mathrm{ColorTools}:-\mathrm{Color}\left("Mono 10"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.14117647}{,}{0.14117647}{,}{0.14117647}\right]\right)$ (1)

You can make Mono the default palette in plots using setcolors

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

You can programmatically access the colors using ColorTools commands

 > $P≔\mathrm{ColorTools}:-\mathrm{GetPalette}\left("Mono"\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[{"BlackishGray"}{,}{"WhitishGray"}{,}{"NeutralGray"}{,}{"DarkGray"}{,}{"LightGray"}{,}{"LightNeutralGray"}{,}{"VeryDarkGray"}{,}{"VeryLightGray"}{,}{"DarkNeutralGray"}{,}{"Gray14"}{,}{"Gray71"}{,}{"Gray27"}{,}{"Gray56"}{,}{"Gray20"}{,}{"Gray64"}{,}{"Gray31"}\right]{,}\left[{"VeryDarkGrey"}{=}{"VeryDarkGray"}{,}{"DarkGrey"}{=}{"DarkGray"}{,}{"VeryLightGrey"}{=}{"VeryLightGray"}{,}{"LightGrey"}{=}{"LightGray"}{,}{"Grey56"}{=}{"Gray56"}{,}{"BlackishGrey"}{=}{"BlackishGray"}{,}{"LightNeutralGrey"}{=}{"LightNeutralGray"}{,}{"Grey20"}{=}{"Gray20"}{,}{"DarkNeutralGrey"}{=}{"DarkNeutralGray"}{,}{"Grey64"}{=}{"Gray64"}{,}{"Grey14"}{=}{"Gray14"}{,}{"NeutralGrey"}{=}{"NeutralGray"}{,}{"Grey31"}{=}{"Gray31"}{,}{"Grey71"}{=}{"Gray71"}{,}{"WhitishGrey"}{=}{"WhitishGray"}{,}{"Grey27"}{=}{"Gray27"}\right]{,}{\mathrm{palettename}}{=}{"Mono"}{,}{\mathrm{palettetype}}{=}{"fill"}\right)$ (2)
 > $P\left[1\right]$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.17254902}{,}{0.17254902}{,}{0.17254902}\right]{,}{\mathrm{caption}}{=}{"Blackish Gray"}\right)$ (3)

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

 > $P\left[20\right]$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{2.495743125}{}{{10}}^{{-10}}{,}{0.1315828000}{,}{0.07043552000}\right]\right)$ (4)
 > $n≔\mathrm{numcolors}\left(P\right)$
 ${n}{≔}{16}$ (5)
 > $\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{point}\right)$

The Mono palette is designed for filled areas, but the Lookup command can provide slightly altered shades of its colors for use in coloring points or lines.

 > $\mathrm{Lookup}\left(P,1,\mathrm{shade}="line"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.082331377}{,}{0.12512158}{,}{0.10155221}\right]\right)$ (6)
 > $\mathrm{Lookup}\left(P,1,\mathrm{shade}="point"\right)$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.}{,}{0.10858176}{,}{0.057060272}\right]\right)$ (7)
 >