Interactive color palettes in Altair.
Project description
# Yerkes
**Interactive color palettes in Altair**
[![pypi](https://img.shields.io/pypi/v/yerkes.svg)](https://pypi.python.org/pypi/yerkes)
[![travis](https://img.shields.io/travis/zsailer/yerkes.svg)](https://travis-ci.org/zsailer/yerkes)
[![docs](https://readthedocs.org/projects/yerkes/badge/?version=latest)](https://yerkes.readthedocs.io/en/latest/?badge=latest)
* Free software: MIT license
* Documentation: https://yerkes.readthedocs.io.
Visualize color palettes interactively in Altair!.
![](docs/img/yerkes.gif)
## How to use.
The simplest use case is to pass the palette a list of colors.
1. Import `NewPalette` from Yerkes.
2. Pass a list of color-hex codes to `NewPalette`.
```python
from yerkes import NewPalette
colors = [
'#FCFFA4',
'#F6D746',
'#FCA50A',
'#F3761B',
]
NewPalette(colors)
```
![](docs/img/readme.png)
Try exploring the palettes from [palettable](https://jiffyclub.github.io/palettable/).
```python
# Import palette
from yerkes import NewPalette
# Import a palette from palettable.
from palettable.colorbrewer.diverging import RdGy_10 as palette
# Show interactive palette
NewPalette(palette.hex_colors)
```
![](docs/img/readme2.png)
## Install
Install from PyPI.
```
pip install yerkes
```
## Credits
This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template.
=======
History
=======
0.1.0 (2018-07-18)
------------------
* First release on PyPI.
**Interactive color palettes in Altair**
[![pypi](https://img.shields.io/pypi/v/yerkes.svg)](https://pypi.python.org/pypi/yerkes)
[![travis](https://img.shields.io/travis/zsailer/yerkes.svg)](https://travis-ci.org/zsailer/yerkes)
[![docs](https://readthedocs.org/projects/yerkes/badge/?version=latest)](https://yerkes.readthedocs.io/en/latest/?badge=latest)
* Free software: MIT license
* Documentation: https://yerkes.readthedocs.io.
Visualize color palettes interactively in Altair!.
![](docs/img/yerkes.gif)
## How to use.
The simplest use case is to pass the palette a list of colors.
1. Import `NewPalette` from Yerkes.
2. Pass a list of color-hex codes to `NewPalette`.
```python
from yerkes import NewPalette
colors = [
'#FCFFA4',
'#F6D746',
'#FCA50A',
'#F3761B',
]
NewPalette(colors)
```
![](docs/img/readme.png)
Try exploring the palettes from [palettable](https://jiffyclub.github.io/palettable/).
```python
# Import palette
from yerkes import NewPalette
# Import a palette from palettable.
from palettable.colorbrewer.diverging import RdGy_10 as palette
# Show interactive palette
NewPalette(palette.hex_colors)
```
![](docs/img/readme2.png)
## Install
Install from PyPI.
```
pip install yerkes
```
## Credits
This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template.
=======
History
=======
0.1.0 (2018-07-18)
------------------
* First release on PyPI.
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
yerkes-0.1.0.tar.gz
(472.0 kB
view details)
Built Distribution
File details
Details for the file yerkes-0.1.0.tar.gz
.
File metadata
- Download URL: yerkes-0.1.0.tar.gz
- Upload date:
- Size: 472.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5079f59cdaec97983960dbac2181568886e90283e6d5133f161370dc81b2e385 |
|
MD5 | 6265b79ce7e736ef709582041a7acece |
|
BLAKE2b-256 | c0d66e70eb92cb145107d0d688afc515dc778b228d552a67d769e147f9790ba9 |
File details
Details for the file yerkes-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: yerkes-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61dadca3c28e780cc02f9b9c2299ce85b1875c45137e8f5b68be535ab4cea42d |
|
MD5 | 3af10761d16bf67868478ca91dda907d |
|
BLAKE2b-256 | 9e0880f0dfab9082412c51b1979e11ea4a92dc1e8b1805511fc37d769a89258e |