Interactive color palettes in Altair.
Project description
# Yerkes
**Interactive color palettes in Altair**
[![pypi](https://img.shields.io/pypi/v/yerkes.svg)](https://pypi-hypernode.com/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)
You can also try exploring 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-hypernode.com/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)
You can also try exploring 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.1.tar.gz
(472.0 kB
view hashes)
Built Distribution
Close
Hashes for yerkes-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0abcf9502e2b49ecb3f811bafc1173c4d723b07ca0c7d8b1bd320de5bfde8891 |
|
MD5 | 6cb65ed5090dea29648721d250cfcbe4 |
|
BLAKE2b-256 | 8c49254c579c68cf80c968cc2f2955b4398cef48e831294cce92ef25c3d387d8 |