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
Gallery
展开查看
AAAS
JAMA
NPG
JCO
LANCET
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.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for sci_palettes-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcbbaa12f66dc47bab02bc4d0d4a94cde5b20a144c671d31f32a1e6817684ee4 |
|
MD5 | b9f5e77f8dddc3c27d49021d1fd0a0b8 |
|
BLAKE2b-256 | 52f6a09279e2835bb3906c7a9fe92a0140d98e26999c5fdae813d49374553b0d |