Create a continuous colormap in matplotlib
Project description
Continuous Colourmap Fuction
Install
pip install continuous_cmap
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.6.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for continuous_cmap-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951a4c075cce17be26edca2af15cb725f658c709183dd689ea9a2ae6b7f9c8e6 |
|
MD5 | 879c495d70f0da032bb38a61cb8e944d |
|
BLAKE2b-256 | 12fadb0a19d30e1eca215d14105de01cd7107550b60289e699a418d01e79ae04 |