wes-palette
wes-palette is a Wes Anderson film color palettes for matplotlib based on vapeplot
Installation
pip install wes-palette
Examples
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()
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)
| File | Size | Uploaded | |
|---|---|---|---|
| wes_palette-0.1.2.tar.gz | 3.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|