Skip to main content

Python package colourmap generates an N unique colors from the specified input colormap.

Project description

colourmap

Python PyPI Version License Github Forks GitHub Open Issues Project Status Downloads Downloads Sphinx

* Colourmap generates an unique lit of RGB and HEX colors for the specified input list.

⭐️ Star this repo if you like it ⭐️

Documentation pages

On the documentation pages you can find more information about colourmap with examples.

Install colourmap from PyPI
pip install colourmap     # normal install
pip install -U colourmap  # update if needed

Import colourmap package

from colourmap import colourmap

Quick example

Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.

from colourmap import colourmap

# Create N colors
c = colourmap.generate(10)

# From list
c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])

# to HEX
c_hex = colourmap.rgb2hex(c_rgb)

Example: Generate N unique colors from a specific colormap

Example: Generate unique colors based on input labels

Example: Create unique colors based on seaborn or matplotlib

Example: Conversion RGB to HEX

Example: Conversion HEX to RGB

Example: Create a linear gradient between colors


Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • For citations, please use the citation at the right side panel.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

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

colourmap-1.1.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

colourmap-1.1.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file colourmap-1.1.4.tar.gz.

File metadata

  • Download URL: colourmap-1.1.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for colourmap-1.1.4.tar.gz
Algorithm Hash digest
SHA256 c66c8bc95a911636d80e0b71456d19dfe2234190b03e939bbc073177b442b5c2
MD5 0ec820ba27a79f3af4d9043548f182fa
BLAKE2b-256 2c24a7a1d16d894d803e85c95271e5109efc6e4d4c8ab4c1b0c0a4eb5e7fce11

See more details on using hashes here.

File details

Details for the file colourmap-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: colourmap-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for colourmap-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e01f61fd84326bf5e21c363573894771cdfe3c8bb5a89552f1ee25571e70994b
MD5 7dd9a6f73d1e668a57ba66cc5f89b8de
BLAKE2b-256 ea86f858cb1dc36495695be330d75010e9adeafa22d2fb896577f905d9fc7dc4

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