Skip to main content

Optimized color schemes for data display

Project description

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

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.1.tar.gz (1.8 MB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

color_tol-0.1.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for color_tol-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68f9835e162dbd5b8374ceed855441c1ac86075f829bc355ed6f8cae06e2adb6
MD5 2fcd6902457b081ed06c5c930c85a8ad
BLAKE2b-256 07b1a89ec26d540414de78828ad66208deae5940d3d7e43b8b791e72a5af01d9

See more details on using hashes here.

File details

Details for the file color_tol-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for color_tol-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 885cc0442f38c46bf8ad20f6d055eb187696fd3bb1b6484fc60345ae8306a3c4
MD5 6f097c0107a53b3c1f35e1741eabec4a
BLAKE2b-256 55a3426f33e79f7d91ef8158b744b3e1e2e703a66c157e95d5477ae0bcc51bae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for color_tol-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 43e671c7b0d0bc13a41a1c089bd8a33cefa9014f38e5e65e5d127c00e15547d7
MD5 ce5142fcc3100febe42fe5feca17ddfd
BLAKE2b-256 b1226b67c9e9dabcaf595f04fd337724897ddf14e95c521ec4241e5e5fcc51c9

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