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 hashes)
Built Distribution
Close
Hashes for sci_palettes-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 180adff7f76f4ab7d790e7d425ad9f39407c938698ba61c47e52a34e500e7e6b |
|
MD5 | e3165904d397749cfa649935923ca9d3 |
|
BLAKE2b-256 | fd9f66a88d55a97c822df56dd7bae62faffd13e742ec70107eb56b0426f0622b |