Skip to main content

p9customtheme

My personal plotnine theme package. You can use it but changes to the theme will appear with minimal versioning.

If you want a reproducible experience make sure to pin the version in your dependency.

Plotnine is awesome and a big thanks to the developers for making it.

Installation

Install this theme using pip ur uv:

uv pip install p9customtheme

Usage

You can simply install the package. Once you import it the theme is set as the default:

import p9customtheme

That is all you need.

Here is a more complete example showing also the color scale option:

from p9customtheme import custom_discrete, custom_theme
import plotnine as p9
from plotnine.data import penguins

(
    p9.ggplot(penguins, p9.aes("species", "bill_length_mm", fill="island"))
    + p9.geom_boxplot()
    + custom_discrete()
    + p9.labs(
        title="Penguin bill length by species and island".title(),
        subtitle="A comparison based on example data",
        x="species",
        y="bill length [mm]",
        fill="Island",
    )
)

A boxplot with the custom theme

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd p9customtheme
uv venv
source ./venv/bin/activate

Now install the dependencies and test dependencies:

uv pip install -e '.[test]'

Before any PR ensure the tests as passing with:

pytest .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

p9customtheme-0.1.3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

p9customtheme-0.1.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file p9customtheme-0.1.3.tar.gz.

File metadata

  • Download URL: p9customtheme-0.1.3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for p9customtheme-0.1.3.tar.gz
Algorithm Hash digest
SHA256 accb11efe8acb68832203e0a6268f71dc72ace9f0a109832d046bf78aec078b4
MD5 721a00dcab917f16b550405a96f74854
BLAKE2b-256 264d7534d8078c083e6dcb5d4c0670de54f589c83e193c26fa99f679f9e02723

See more details on using hashes here.

Provenance

The following attestation bundles were made for p9customtheme-0.1.3.tar.gz:

Publisher: publish.yml on openpaul/p9customtheme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file p9customtheme-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: p9customtheme-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for p9customtheme-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dacc29d21bd8d4be0f40b4ce296f9856275b4f0de22f262e598812ec700289a7
MD5 c5b2f92df17a65e2a95a9363250d05c9
BLAKE2b-256 e9961a8135d21a042f01e8af3e35d2b59511e28f850337c3fac7ce8064741dac

See more details on using hashes here.

Provenance

The following attestation bundles were made for p9customtheme-0.1.3-py3-none-any.whl:

Publisher: publish.yml on openpaul/p9customtheme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page