Metadata-Version: 2.0
Name: yerkes
Version: 0.1.0
Summary: Interactive color palettes in Altair.
Home-page: https://github.com/zsailer/yerkes
Author: Zach Sailer
Author-email: zachsailer@gmail.com
License: MIT license
Keywords: yerkes
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: Click (>=6.0)
Requires-Dist: altair (>=0.2.1)

# 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)

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.


