Mono Color Palette - Maple Programming Help

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

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 programatically 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"}{,}{"Grey14"}{=}{"Gray14"}{,}{"Grey71"}{=}{"Gray71"}{,}{"VeryLightGrey"}{=}{"VeryLightGray"}{,}{"Grey20"}{=}{"Gray20"}{,}{"DarkNeutralGrey"}{=}{"DarkNeutralGray"}{,}{"Grey31"}{=}{"Gray31"}{,}{"Grey27"}{=}{"Gray27"}{,}{"WhitishGrey"}{=}{"WhitishGray"}{,}{"Grey64"}{=}{"Gray64"}{,}{"DarkGrey"}{=}{"DarkGray"}{,}{"BlackishGrey"}{=}{"BlackishGray"}{,}{"LightGrey"}{=}{"LightGray"}{,}{"Grey56"}{=}{"Gray56"}{,}{"LightNeutralGrey"}{=}{"LightNeutralGray"}{,}{"NeutralGrey"}{=}{"NeutralGray"}\right]{,}{\mathrm{palettename}}{=}{"Mono"}{,}{\mathrm{palettetype}}{=}{"fill"}\right)$ (2)
 > ${P}_{1}$
 ${\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}_{20}$
 ${\mathrm{ColorTools}}{:-}{\mathrm{Color}}{}\left({"RGB"}{,}\left[{0.2976470645}{,}{0.2976470640}{,}{0.2976470640}\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)}_{1..n},\mathrm{legend}={:-\mathrm{GetColorNames}\left(P\right)}_{1..n},\mathrm{numpoints}=25,\mathrm{style}=\mathrm{point}\right)$

The Mono palette is designed for fills, 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)
 >