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.
Metadata
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 | Provenance | |
|---|---|---|---|---|
| wes_palette-0.1.2.tar.gz | 3.6 MB | Without provenance | 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
|
Security for wes-palette 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.