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.8.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

colourmap-1.1.8-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colourmap-1.1.8.tar.gz
  • Upload date:
  • Size: 6.9 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.8.tar.gz
Algorithm Hash digest
SHA256 d149fb8b7414e146da5f5de78a4db3cc0ce6040348fd00280e2a5212fca32e21
MD5 25851229f5349aa671526c72baf4d2c5
BLAKE2b-256 c4a44508fc1de4adb6533fe24517d041619a69ad0cc1ac371c0e4fd21ec77ea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colourmap-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1d30920403036970edae93e13dfad2a0a00482ac402ed353cc39122ca6799631
MD5 6007b44fa7dda66d2b9636954401bd4d
BLAKE2b-256 b3258ad31b133a839fc48423b7ad794b2d6c270cfe97c907d532bff2500bda4c

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