Dalton Color Palette
Description
Examples
The Dalton plot palette is a selection of colors to be more easily distinguishable for viewers with red-green color blindness. It is designed for coloring filled areas. There are ten colors in the palette.
ColorTools:-DisplayPalette("Dalton",noextend);
1. SkyBlue
2. Vermillion
3. Yellow
4. Blue
5. Orange
6. ReddishPurple
7. BluishGreen
8. PaleOrange
9. Purple
10. Black
The CVD palettes are also designed with color blindness in mind. For more information, including palettes designed for viewers with all types of color defective vision, see CVD Color Palette.
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=Dalton 2,Dalton Blue
C≔ColorTools:-Color⁡Dalton 5
C≔〈RGB : 0.902 0.624 0〉
You can make Dalton the default palette in plots using setcolors
plots:-setcolors⁡Dalton:
You can programmatically access the colors using ColorTools commands
P≔ColorTools:-GetPalette⁡Dalton
P≔Palette Dalton:⁢SkyBlue⁢Vermillion⁢Yellow⁢Blue⁢Orange⁢ReddishPurple⁢BluishGreen⁢PaleOrange⁢Purple⁢Black
P1
〈RGB : Sky Blue〉
n≔numcolors⁡P
n≔10
plot⁡seq⁡sin⁡x+i⁢πn,i=1..n,x=0..2⁢π,axes=boxed,color=:-GetColors⁡P1..n,legend=:-GetColorNames⁡P1..n,numpoints=25,style=line
ColorTools algorithms will automatically generate new colors beyond the main 10 colors. Extended colors are algorithmically generated and should also attempt to be well distributed for red-green color blind viewers.
P11
〈RGB : 0.627 0.0784 0.156〉
The Dalton 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.
Lookup⁡P,1,shade=line
〈RGB : 0.206 0.612 0.822〉
Lookup⁡P,1,shade=point
〈RGB : 0.113 0.564 0.774〉
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
CVD Color Palette
plots[setcolors]
Download Help Document