Skip to main content

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


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)

Uploaded Source

Built Distribution

sci_palettes-1.0.1-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page