sci palettes for matplotlib/seaborn
Project description
sci palettes for matplotlib/seaborn
Installation
python3 -m pip install sci-palettes
Usage
import seaborn as sns
import matplotlib.pyplot as plt
import sci_palettes
print(sci_palettes.PALETTES.keys())
sci_palettes.register_cmap() # register all palettes
sci_palettes.register_cmap('aaas') # register a special palette
# methods for setting palette
plt.set_cmap('aaas')
plt.style.use('aaas')
sns.set_theme(palette='aaas')
sns.set_palette('aaas')
sns.scatterplot(...)
# set palette when plotting
sns.scatterplot(..., palette='aaas')
Full examples in examples
Inspired by the R Package ggsci
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sci-palettes-1.0.0.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file sci-palettes-1.0.0.tar.gz
.
File metadata
- Download URL: sci-palettes-1.0.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a61d51c12cca82a5c3dfc06cc4eb3cdb954b39bdb22c828789e409d6461fe58 |
|
MD5 | 7a3b39b4eb4102a25cbc57be97f0cb31 |
|
BLAKE2b-256 | 9492f4696915860a565b9626fca5df48ce766fd2e945dcb52adab17ab882296b |
File details
Details for the file sci_palettes-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sci_palettes-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 180adff7f76f4ab7d790e7d425ad9f39407c938698ba61c47e52a34e500e7e6b |
|
MD5 | e3165904d397749cfa649935923ca9d3 |
|
BLAKE2b-256 | fd9f66a88d55a97c822df56dd7bae62faffd13e742ec70107eb56b0426f0622b |