Skip to main content

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


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)

Uploaded Source

Built Distribution

continuous_cmap-0.0.6-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for continuous_cmap-0.0.6.tar.gz
Algorithm Hash digest
SHA256 410dde3179e0f5da9476355d16446d4053ab6ff30e8581f2a8cf70c229952827
MD5 d6defa3c1547083a2310ca38ff059ebb
BLAKE2b-256 2cf28c76b52cac873581e5a7fea2ae1e66f226f699cb77b46ffdb04dbc6d27da

See more details on using hashes here.

File details

Details for the file continuous_cmap-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for continuous_cmap-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 951a4c075cce17be26edca2af15cb725f658c709183dd689ea9a2ae6b7f9c8e6
MD5 879c495d70f0da032bb38a61cb8e944d
BLAKE2b-256 12fadb0a19d30e1eca215d14105de01cd7107550b60289e699a418d01e79ae04

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page