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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f9835e162dbd5b8374ceed855441c1ac86075f829bc355ed6f8cae06e2adb6 |
|
MD5 | 2fcd6902457b081ed06c5c930c85a8ad |
|
BLAKE2b-256 | 07b1a89ec26d540414de78828ad66208deae5940d3d7e43b8b791e72a5af01d9 |
File details
Details for the file color_tol-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: color_tol-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 885cc0442f38c46bf8ad20f6d055eb187696fd3bb1b6484fc60345ae8306a3c4 |
|
MD5 | 6f097c0107a53b3c1f35e1741eabec4a |
|
BLAKE2b-256 | 55a3426f33e79f7d91ef8158b744b3e1e2e703a66c157e95d5477ae0bcc51bae |
File details
Details for the file color_tol-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: color_tol-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e671c7b0d0bc13a41a1c089bd8a33cefa9014f38e5e65e5d127c00e15547d7 |
|
MD5 | ce5142fcc3100febe42fe5feca17ddfd |
|
BLAKE2b-256 | b1226b67c9e9dabcaf595f04fd337724897ddf14e95c521ec4241e5e5fcc51c9 |