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 seven colors in the palette.
ColorTools:-DisplayPalette("Dalton",noextend);
1. SkyBlue
2. Vermillion
3. Yellow
4. Blue
5. Orange
6. ReddishPurple
7. BluishGreen
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
ColorTools:-Color⁡RGB,0.90196078,0.62352941,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
ColorTools:-Palette⁡module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,SkyBlue,Vermillion,Yellow,Blue,Orange,ReddishPurple,BluishGreen,,palettename=Dalton,palettetype=fill
P1
ColorTools:-Color⁡RGB,0.33725490,0.70588235,0.91372549,caption=Sky Blue
n≔numcolors⁡P
n≔7
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 7 colors. Extended colors are algorithmically generated and should also attemp to be well distributed for red-green color blind viewers.
P10
ColorTools:-Color⁡RGB,0.1216480102,0.2500747801,0.3678495298
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
ColorTools:-Color⁡RGB,0.,0.64170173,0.87877048
Lookup⁡P,1,shade=point
ColorTools:-Color⁡RGB,0.,0.60534933,0.83050246
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
CVD Color Palette
plots[setcolors]
Download Help Document
What kind of issue would you like to report? (Optional)