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

Before any PR ensure the tests as passing with:

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.1.0.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.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: p9customtheme-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 61a3fa1dc9580cfdf730ca8209c8a9fa00b4dc271729eccfa4ecae5e852cb7da
MD5 9be0e7933002593f05b38fec62669d90
BLAKE2b-256 d6300d5db9c69f1f2cef71b901146b904940908ac89b7296159784c4a0d33d81

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: p9customtheme-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de30e11f6f245d503abfc1c148a28c5daf3126c51f7ec324b51f60ea46bff53f
MD5 8fde37c792105533713dde5ad7dcaa2d
BLAKE2b-256 88c0af968d00d2d8de30fcd207684aba10a98a8260f479df0ffd13454b2aa5d4

See more details on using hashes here.

Provenance

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