jiffyclub / palettable

Color palettes for Python
https://jiffyclub.github.io/palettable/
Other
768 stars 73 forks source link

Add option of building custom colormap from HEX #36

Open lenkahas opened 4 years ago

lenkahas commented 4 years ago

Hi, I can't seem to find any option of building a custom color palette from hex codes, is there any?

An example from matplotlib

from matplotlib.colors import ListedColormap

newcmp = ListedColormap(['#2352DF','#829DED','#B8C7F5','#DBE3FA','#FBF9F9','#FED7D7','#FEAFAF','#FE7171','#C30303'])