Page
Library
Module
Module type
Parameter
Class
Class type
Source
Color_brewery.Palette
SourceColormaps with certain characteristics.
A color map.
gradient m
returns a gradient constructed from the palette. It only makes sense for sequential and some diverging palettes.
ty m
says whether the palette is `Seq
uential, `Div
ergent or `Qual
itative.
blind m
says whether the palette m
is colorblind safe.
print m
says whether the palette m
is friendly for LCD screens.
val find :
?ty:[ `Seq | `Div | `Qual ] ->
?blind:[ `Yes | `No | `Maybe ] ->
?print:[ `Yes | `No | `Maybe ] ->
?copy:[ `Yes | `No | `Maybe ] ->
?lcd:[ `Yes | `No | `Maybe ] ->
int ->
t list
find length
return the list of palettes that support the desired properties and having at least length length
. Note that most of the palette have ≤ 12 colors and the longer the palette, the less it will satisfy other properties. For properties selected with `Yes
`No
or `Maybe
, setting `No
(the default) means one does not care, setting `Maybe
selects palettes that maybe (or for sure) satisfy the property and `Yes
selects palettes that satisfy the property for sure.
ty
, if provided, restricts maps to the color scheme:
`Seq
: Sequential scheme`Div
: Diverging scheme`Qual
: Qualitative schemeblind
: the palette should be safe for color blind people.print
: the palette is print friendly.copy
: the palette is photocopy friendly.lcd
: the palette is LCD friendly.Matplotlib colormaps
These are sequential colormaps (each with 256 colors). You can find more information on this page.
Color schemes as described in the paper: Brewer, Cynthia A., Geoffrey W. Hatchard and Mark A. Harrower, 2003, ColorBrewer in Print: A Catalog of Color Schemes for Maps, Cartography and Geographic Information Science 30(1): 5-32.
See also www.ColorBrewer.org
Medium saturation set with more lightness variation and more classes than Set1
and Set2
.