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

Uploaded Source

Built Distribution

colourmap-1.1.10-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colourmap-1.1.10.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for colourmap-1.1.10.tar.gz
Algorithm Hash digest
SHA256 625c5dc20deb6bb44a27531ab58ffc09108cdcbd254076b5417042711682a1fa
MD5 306094592f14c126e194eec96c747056
BLAKE2b-256 bcab10a7c7ca45e40810e5b8e33dc2a7169d74113ebc8ebdb2606c4d73e7524f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colourmap-1.1.10-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for colourmap-1.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 594f7485c41b74a3e85cfd898f9508525f10bf8bb1fcfa740a33a65abe8981c6
MD5 a86be5c02569a9d8796cbe99d984715c
BLAKE2b-256 149270450f9cca09592dcd545161d77c8196f18afadaf1687509f5dc31963a8e

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