Skip to main content

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

Project details


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.3.tar.gz (290.6 kB view details)

Uploaded Source

File details

Details for the file wes-0.1.3.tar.gz.

File metadata

  • Download URL: wes-0.1.3.tar.gz
  • Upload date:
  • Size: 290.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wes-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e8b595b9821056cbe8763491f64972a20739e401c3b9bc0c99fa7295f2cec4a1
MD5 742c0999da6d29dca669d412895dfb19
BLAKE2b-256 f4213539b008094b8bb624e3c3cac515d1879cf5a9a493d31d7aacd1de97b72d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page