Skip to main content

Use Wes Anderson Color Palettes in Matplotlib & Seaborn

Project description

**W**es **A**nderson **M**at**P**lot**L**ib Palettes
====================================================================
aka `wes`
----------

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](http://nbviewer.ipython.org/github/ljwolf/wampl/blob/master/demo.ipynb) 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.4.tar.gz (290.8 kB view details)

Uploaded Source

Built Distribution

wes-0.1.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wes-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5e3a582d6ce79242f4cfc0c999f7d85c320fe6e71230ea68c1f2f50c9d20497d
MD5 31acad1623a0dbdf77f1dd3dacbc2dda
BLAKE2b-256 b763cdf009617653e4e5f4a215fc17ad0bb8f5ddb9adcb99ff845c1fc860045c

See more details on using hashes here.

Provenance

File details

Details for the file wes-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for wes-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3b726a676ccff646ebea1900e6748bf6515240f5d3a1ece09940c9edfe078ff2
MD5 c21fe5d7c9b86a396fcfd4ff393934cd
BLAKE2b-256 36344ebe5d7b46466a01e8bd1e6d315f050b9e78a407c77d4a1292093acb404d

See more details on using hashes here.

Provenance

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