Skip to main content

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

展开查看

AAAS

JAMA

NPG

JCO

LANCET

Inspired by the R Package ggsci

Metadata

Release files for sci-palettes 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sci-palettes 1.0.1
File Size Uploaded
sci-palettes-1.0.1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sci-palettes 1.0.1
File Interpreter ABI Platform
sci_palettes-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / sci-palettes-1.0.1.tar.gz

Download URL sci-palettes-1.0.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
160fe5f0e2a5998ddfc2e8247cce9636239295aa7b8dc842f467562b92b34b55
BLAKE2b-256 checksum
How to use checksums
8afcb793f09d5b9948d30ba5b6320917b624a5c6a91ed90ca02dd299376020b0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sci_palettes-1.0.1-py3-none-any.whl

Download URL sci_palettes-1.0.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcbbaa12f66dc47bab02bc4d0d4a94cde5b20a144c671d31f32a1e6817684ee4
BLAKE2b-256 checksum
How to use checksums
52f6a09279e2835bb3906c7a9fe92a0140d98e26999c5fdae813d49374553b0d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page