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 details)
Built Distribution
File details
Details for the file continuous_cmap-0.0.6.tar.gz
.
File metadata
- Download URL: continuous_cmap-0.0.6.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 410dde3179e0f5da9476355d16446d4053ab6ff30e8581f2a8cf70c229952827 |
|
MD5 | d6defa3c1547083a2310ca38ff059ebb |
|
BLAKE2b-256 | 2cf28c76b52cac873581e5a7fea2ae1e66f226f699cb77b46ffdb04dbc6d27da |
File details
Details for the file continuous_cmap-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: continuous_cmap-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951a4c075cce17be26edca2af15cb725f658c709183dd689ea9a2ae6b7f9c8e6 |
|
MD5 | 879c495d70f0da032bb38a61cb8e944d |
|
BLAKE2b-256 | 12fadb0a19d30e1eca215d14105de01cd7107550b60289e699a418d01e79ae04 |