Skip to main content

plotnine-prism

Prism themes for plotnine, inspired by ggprism.

Installation

pip install -U plotnine-prism

Documentation

https://pwwang.github.io/plotnine-prism

Usage

See this notebook for the following example, and also Getting started for a quick overview of plotnine_prism features.

from plotnine import *
from plotnine_prism import *

from datar.all import f, as_categorical, mutate
from datar.datasets import ToothGrowth

ToothGrowth >>= mutate(dose=as_categorical(f.dose))

base = (
    ggplot(ToothGrowth, aes(x = "dose", y = "len")) +
    geom_violin(aes(colour = "dose", fill = "dose"), trim = False) +
    geom_boxplot(aes(fill = "dose"), width = 0.2, colour = "black")
)

p1 = base + ylim(-5, 40)
p2 = (
    base +
    scale_y_continuous(limits=[-5, 40], guide=guide_prism_offset_minor()) +
    scale_color_prism('floral') +
    scale_fill_prism('floral') +
    theme_prism()
)
# See examples/nb_helpers.py for plot_grid function
# plot_grid(p1, p2)

More examples

The Dose Response Curve was recreated. See this vignette for the source code and step-by-step instructions.

Metadata

Release files for plotnine-prism 0.3.3

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

Source distribution (sdist)

Source distribution for plotnine-prism 0.3.3
File Size Uploaded Provenance Actions
plotnine_prism-0.3.3.tar.gz 25.9 kB Without provenance Details for plotnine_prism-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plotnine-prism 0.3.3
File Interpreter ABI Platform Actions
plotnine_prism-0.3.3-py3-none-any.whl Python 3 none any Details for plotnine_prism-0.3.3-py3-none-any.whl

Total release size: 68.6 kB

Release files / plotnine_prism-0.3.3.tar.gz

Download URL plotnine_prism-0.3.3.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
440ec05ed29d0822c84013decc7464899f87e2b5ae04a6c0a1dc63a64934141f
BLAKE2b-256 checksum
How to use checksums
4021d81d3ce0e9039c87c71d5d280200df38bdd21c460cadf543027432134da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure

Release files / plotnine_prism-0.3.3-py3-none-any.whl

Download URL plotnine_prism-0.3.3-py3-none-any.whl
Size 42.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e795ff242a0f732b63e35400fff71e1819fbecaddd8bca942e4c3495959dc97
BLAKE2b-256 checksum
How to use checksums
b2ac0180dde120daa9210ff0ef62638cc249548a330e1a77d2f99dfcdff66b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure

Security for plotnine-prism 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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