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

Uploaded Source

Built Distribution

colourmap-1.1.16-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colourmap-1.1.16.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.5

File hashes

Hashes for colourmap-1.1.16.tar.gz
Algorithm Hash digest
SHA256 4b54405f894b910898a1babdc3c96f5bd2037f096cbccde9a106d85f21044c0e
MD5 351dd7f0a45afcb6c73c8ab8ee8bfc89
BLAKE2b-256 8b0c1ee1a359203e637935bf1ac7449c84660996d8cadd73be6a2637ed5fc04a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colourmap-1.1.16-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.5

File hashes

Hashes for colourmap-1.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c9e1f8761e74b073a2b8b4cd133e7719e4b8ad9bec32ba8833b115f08f4f55
MD5 320513c1124d224f84433b0dcc26a6a8
BLAKE2b-256 053710bb10d990a6c986d25c5c7407ad740ee0cf047a6a0a1f297b0b92e3caaf

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