Colormaps#

Usage#

The easychart package comes pre-loaded with the 83 colormaps available in matplotlib. Each of these can be assigned by name to the chart.cAxis to convert the colormap to the chart.colorAxis.stops of the relevant chart.

Note

Colormap names are case-insensitive

import easychart

chart = easychart.new("column")
chart.cAxis = "reds"
chart.plot([1, 2, 3, 4, 5, 6])
chart

Each colormap can be reversed by appending .reversed to its name.

import easychart

chart = easychart.new("column")
chart.cAxis = "reds.reversed"
chart.plot([1, 2, 3, 4, 5, 6])
chart

Each colormap can also be mirrored by appending .symmetric to its name.

import easychart

chart = easychart.new("column")
chart.cAxis = "reds.symmetric"
chart.plot([1, 2, 3, 4, 5, 6, 7])
chart

And .reversed and .symmetric can be used jointly.

import easychart

chart = easychart.new("column")
chart.cAxis = "reds.reversed.symmetric"
chart.plot([1, 2, 3, 4, 5, 6, 7])
chart

Colormaps#

Selected colormaps. See here for full list of available colormaps

Perceptually uniform sequential colormaps#

Colormap name

Example

plasma

../_images/plasma.png

viridis

../_images/viridis.png

inferno

../_images/inferno.png

magma

../_images/magma.png

cividis

../_images/cividis.png

Sequential colormaps#

Colormap name

Example

greens

../_images/greens.png

bugn

../_images/bugn.png

ylgn

../_images/ylgn.png

ylorbr

../_images/ylorbr.png

ylorrd

../_images/ylorrd.png

reds

../_images/reds.png

oranges

../_images/oranges.png

orrd

../_images/orrd.png

purd

../_images/purd.png

rdpu

../_images/rdpu.png

bupu

../_images/bupu.png

purples

../_images/purples.png

pubu

../_images/pubu.png

blues

../_images/blues.png

ylgnbu

../_images/ylgnbu.png

greys

../_images/greys.png

pink

../_images/pink.png

Diverging colormaps#

Colormap name

Example

rdgy

../_images/rdgy.png

brbg

../_images/brbg.png

rdbu

../_images/rdbu.png

puor

../_images/puor.png

piyg

../_images/piyg.png

prgn

../_images/prgn.png

coolwarm

../_images/coolwarm.png

bwr

../_images/bwr.png

seismic

../_images/seismic.png

Cyclic colormaps#

Colormap name

Example

twilight

../_images/twilight.png

twilight_shifted

../_images/twilight_shifted.png

hsv

../_images/hsv.png

Other colormaps#

Colormap name

Example

terrain

../_images/terrain.png