Use Wes Anderson Color Palettes in Matplotlib & Seaborn
Project description
WAMPL: Another *W*es *A*nderson *M*at*P*lot*L*ib Palettes
===========================================================
This is another [Wes Anderson Palettes](http://wesandersonpalettes.tumblr.com/)
implementation. Currnetly, if you set your default pallete, it just modifies the
default color cycle to the one provided by the blog. I don't make any
classification or useage inferences, unlike jiffyclub's fantastic
[palettable](https://github.com/jiffyclub/palettable).
Check out the [demo notebook](demoURL) for more information.
Usage
-----
It's about as easy as:
```
import wes
wes.set_palette('Rushmore')
```
and then your future plots will use the `Rushmore` palette. If you'd like to
reset your palette, use
```
import matplotlib
matplotlib.rcdefaults()
```
Otherwise, you can show all palettes available using `wes.available()` and can
plot two palettes against each other using `wes.plot_palettes(*args)`.
You can also use this with
[seaborn](http://stanford.edu/~mwaskom/software/seaborn/). Just remember to set
your palette **after** importing seaborn, as seaborn overwrites matplotlib's
[`rcdefaults`](http://matplotlib.org/users/customizing.html)
License
--------
This is licensed in the Creative Commons for Attribution and ShareAlike
purposes.
CC-BY-SA
===========================================================
This is another [Wes Anderson Palettes](http://wesandersonpalettes.tumblr.com/)
implementation. Currnetly, if you set your default pallete, it just modifies the
default color cycle to the one provided by the blog. I don't make any
classification or useage inferences, unlike jiffyclub's fantastic
[palettable](https://github.com/jiffyclub/palettable).
Check out the [demo notebook](demoURL) for more information.
Usage
-----
It's about as easy as:
```
import wes
wes.set_palette('Rushmore')
```
and then your future plots will use the `Rushmore` palette. If you'd like to
reset your palette, use
```
import matplotlib
matplotlib.rcdefaults()
```
Otherwise, you can show all palettes available using `wes.available()` and can
plot two palettes against each other using `wes.plot_palettes(*args)`.
You can also use this with
[seaborn](http://stanford.edu/~mwaskom/software/seaborn/). Just remember to set
your palette **after** importing seaborn, as seaborn overwrites matplotlib's
[`rcdefaults`](http://matplotlib.org/users/customizing.html)
License
--------
This is licensed in the Creative Commons for Attribution and ShareAlike
purposes.
CC-BY-SA
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
wes-0.1.2.tar.gz
(290.0 kB
view details)
File details
Details for the file wes-0.1.2.tar.gz
.
File metadata
- Download URL: wes-0.1.2.tar.gz
- Upload date:
- Size: 290.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b5da12e6833cd1cb519654abe07e90f9f2eddc7bf9cb4eca0733ba6f1be807 |
|
MD5 | 450e872f9ec13f3edd9e37d959981072 |
|
BLAKE2b-256 | b5dd13d38a517a2319923e601a0e1f0843f958b430f589093c53c56f6a5faec5 |