Skip to main content

Optimized color schemes for data display

Project description

# color_tol: Colour maps for analysis

This Python package is meant to complement the wonderful work by [Cynthia Brewer](http://colorbrewer2.org/), using the work of [Paul Tol](https://personal.sron.nl/~pault/), where he introduced a very rigorous set of colors that were clearly identifyable for those with or without color-blindness. [His work](https://personal.sron.nl/~pault/colourschemes.pdf) can also be found under the docs folder of this package.


## Use

Three different color maps - qualitative, sequential, and diverging - are available, either in RGB or HTML codes.

To access any of them, you call the functions

qualitative(<number>)

sequential(<number>)

diverging(<number>)

where the <number> represents the number of colors you wish.

E.g.,

>>> my_map = qualitative(7)
>>> my_map.html_colors
['#332288', '#88CCEE', '#44AA99', '#117733', '#DDCC77', '#CC6677', '#AA4499']
>>> my_map.rgb_colors
[(51, 34, 136), (136, 204, 238), (68, 170, 153), (17, 119, 51), (221, 204, 119), (204, 102, 119), (170, 68, 153)]

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

color_tol-0.1.3.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

color_tol-0.1.3-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file color_tol-0.1.3.tar.gz.

File metadata

  • Download URL: color_tol-0.1.3.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for color_tol-0.1.3.tar.gz
Algorithm Hash digest
SHA256 87e2727d7b71c51710aafd37b1438f48e96d887ec059e172e5e2073dc67bfaed
MD5 f6f729fd73565673c73b940c9bec6d79
BLAKE2b-256 25b8b82fe5e80fa404c6db0f85b688302e54a46bc40d6b6b7413ba25f149faf7

See more details on using hashes here.

File details

Details for the file color_tol-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for color_tol-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91609dc0069931cec577b76ec17e31f924e81f872e5d7146fa16706cf0a93fba
MD5 0771648063fa19b22f3fd6aab4637bd4
BLAKE2b-256 d78ab641c9ddf01a69a343c0bc28f5a54ba20a23290e7c610bf6cb5cc6afabbd

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