Skip to main content

plastik

pre-commit Code style: black

plt assist, plastic surgery for plt

Install

plastik is available through PyPI:

pip install plastik

Installing the development version is done using uv:

git clone https://github.com/engeir/plastik.git
cd plastik
uv sync

Usage

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np

import plastik

mpl.style.use("plastik.default")
fig, axs = plastik.figure_grid(
    2,
    2,
    {
        "labels": ["Hello subplot title", 1, r"$4\hbar$", None],
        "pos": (0.6, 0.1),
        "share_axes": "x",
        "columns_first": True,
    },
)
for i, ax in enumerate(axs):
    ax.plot(np.array([1, 2, 3]), np.array([1, 2, 3]) * i)
fig.savefig("figure_grid_opts.png")
plt.show()

See more examples and their output.

Metadata

Release files for plastik 0.11.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 plastik 0.11.1
File Size Uploaded
plastik-0.11.1.tar.gz 867.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plastik 0.11.1
File Interpreter ABI Platform
plastik-0.11.1-py3-none-any.whl Python 3 none any Details

Total release size: 912.3 kB

Release files / plastik-0.11.1.tar.gz

Download URL plastik-0.11.1.tar.gz
Size 867.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f9ee94eebf362811c0f0b851192d0b139239e0b224a471f03eb45d6602c1e622
BLAKE2b-256 checksum
How to use checksums
12b75d84ca0219dd51960522ddd467fffb18bdeea6830f8ae546fa704bbcd8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / plastik-0.11.1-py3-none-any.whl

Download URL plastik-0.11.1-py3-none-any.whl
Size 45.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f3cadac8b9c39134d9fd89217aa696be2225798d184866779d42cd5dc0e81fa
BLAKE2b-256 checksum
How to use checksums
5d778a3c01944f391c671a1e391d6d9baedafa6944f5ec54913cafa3e014ed02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files

0.11.0

2 release files

0.10.3

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.1

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