Skip to main content

wes-palette

PyPI license issues Build Status docs coverage

wes-palette is a Wes Anderson film color palettes for matplotlib based on vapeplot

Installation

pip install wes-palette

Examples

wes anderson palettes

Basic Usage

Import the package

import wes_palette as wes

Generate a custom diverging colormap

cmap = wes.cmap('budapest')

Create your graph with matplotlib and then display the plot:

plt.show()

Example

# Create a visualization
sns.set_theme(style="white")

# Generate a large random dataset
rs = np.random.RandomState(33)
d = pd.DataFrame(data=rs.normal(size=(100, 26)),
             columns=list(ascii_letters[26:]))

# Compute the correlation matrix
corr = d.corr()

# Generate a mask for the upper tria#ngle
mask = np.triu(np.ones_like(corr, dtype=bool))

# Set up the matplotlib figure
f, ax = plt.subplots(figsize=(11, 9))

# Generate a custom diverging colormap
cmap = wes.cmap('dispatch')

# Draw the heatmap with the mask and correct aspect ratio
sns.heatmap(corr, mask=mask, cmap=cmap, vmax=.3, center=0,
        square=True, linewidths=.5, cbar_kws={"shrink": .5})

plt.show()

example example example

Contributing

See CONTRIBUTING.md

License

Protected under MIT Liscense.

Release files for wes-palette 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wes-palette 0.1.2
File Size Uploaded
wes_palette-0.1.2.tar.gz 3.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for wes-palette 0.1.2
File Interpreter ABI Platform
wes_palette-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.6 MB

Release files / wes_palette-0.1.2.tar.gz

Download URL wes_palette-0.1.2.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
9a455f66c5723a68e3a00d5a3e8931fed9ee937594b16de67fe28e8e596e9e67
BLAKE2b-256 checksum
How to use checksums
9b98168adc9848ace10e573f5393ec82de73773c71b6d2910e405f0a7e3c48ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / wes_palette-0.1.2-py3-none-any.whl

Download URL wes_palette-0.1.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13bdef27987aa8090e58cab0671b644782465b3fdf5b856501445692189c6009
BLAKE2b-256 checksum
How to use checksums
6d3e75e5ec128ff07cca169688ca7c2dc708ddefed7f778bbc3b61bd6446618d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page