Create a continuous colormap in matplotlib
Project description
Continuous Colourmap Fuction
Install
pip install ccm
How to use
Simple paired colors and splits to generate a continuous colourmap.
hex_list = ['#2AA364', '#F5EB4D', '#9E4229', '#381D02', '#381D02', '#381D02']
float_list=[0, 0.15, .6,.75,.8,1]
cmap_1000 = get_continuous_cmap(hex_list = hex_list, float_list = float_list)
cmap_1000
hex_list = ['#2AA364', '#F5EB4D', '#9E4229', '#381D02', '#381D02']
float_list=[0, 0.65, .75,.8,1]
cmap_1000 = get_continuous_cmap(hex_list = hex_list, float_list = float_list)
cmap_1000
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
continuous_cmap-0.0.4.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for continuous_cmap-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae2f9d66cac69859fb0fb8d2cf7aafe50e9fb32e9d42dab5a66cdce28558ad1 |
|
MD5 | 9e3fa7a0233b4a68b14898b3c6a650e6 |
|
BLAKE2b-256 | f301d0c9531932e9a7ce577231ff19277ee844000e7ecec738d0d26866de1ee8 |