Skip to main content

plastic surgery for plt

Project description

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.

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

plastik-0.11.1.tar.gz (867.1 kB view details)

Uploaded Source

Built Distribution

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

plastik-0.11.1-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file plastik-0.11.1.tar.gz.

File metadata

  • Download URL: plastik-0.11.1.tar.gz
  • Upload date:
  • Size: 867.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for plastik-0.11.1.tar.gz
Algorithm Hash digest
SHA256 f9ee94eebf362811c0f0b851192d0b139239e0b224a471f03eb45d6602c1e622
MD5 457260e72f39d91473b31ad7befbcd95
BLAKE2b-256 12b75d84ca0219dd51960522ddd467fffb18bdeea6830f8ae546fa704bbcd8cb

See more details on using hashes here.

File details

Details for the file plastik-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: plastik-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for plastik-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f3cadac8b9c39134d9fd89217aa696be2225798d184866779d42cd5dc0e81fa
MD5 61236f603f1bdc81d5118532e0867984
BLAKE2b-256 5d778a3c01944f391c671a1e391d6d9baedafa6944f5ec54913cafa3e014ed02

See more details on using hashes here.

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