Skip to main content

My personal plotnine theme package.

Project description

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]'

To run the tests:

pytest

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

p9customtheme-0.0.1.tar.gz (10.4 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.0.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for p9customtheme-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a4ae92d1015f7c201e8aad690340670efd03638f948716f8ad500fe2614fe819
MD5 17f8234d3ba656a1e4d9057e6ba5dc39
BLAKE2b-256 eb4faaed596cc1f3fdfa6c0ce7e1f4ee0b65daa1a27241d64d369d9acfb39872

See more details on using hashes here.

Provenance

The following attestation bundles were made for p9customtheme-0.0.1.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.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for p9customtheme-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2530a37a300d38472887f7dfca58b8f494455c15da7f29182fb344c234e68f
MD5 6fcac1b62a4e42a30fc46e0db7aaa882
BLAKE2b-256 27e2f3e4d6547f2e96f9e2a9ad0090a60d7d251d281e8ef85abf0a623ec9f8f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for p9customtheme-0.0.1-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.

Supported by

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