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](, using the work of [Paul Tol](, where he introduced a very rigorous set of colors that were clearly identifyable for those with or without color-blindness. [His work]( 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




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


>>> 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.

Files for color-tol, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size color_tol-0.1.3-py2.py3-none-any.whl (6.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size color_tol-0.1.3.tar.gz (1.8 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page