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.9.0.tar.gz (875.7 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.9.0-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plastik-0.9.0.tar.gz
  • Upload date:
  • Size: 875.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for plastik-0.9.0.tar.gz
Algorithm Hash digest
SHA256 acedc5173742e8d968c4e44a15a2e85f00ae4b26ba4a51b7559063adf5c1a332
MD5 0e207a38825c74fed65e53aa2d859ed3
BLAKE2b-256 2097b41b1d2f7745c0dab8792bc3a6643e498e1d5f66e4c7e9d68b12a66ea0bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plastik-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 44.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for plastik-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 684214d0a8a9e9d5fd21dc31ded0cc5610f79f5e6f301de6468399dff1abdab7
MD5 2fe0f7962650c9ee738956447e01ea0f
BLAKE2b-256 17060dc4fcf5364fa02eacbcc21b0ef0728a10ea674e725563fc5317217b6ae6

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