plastic surgery for plt
Project description
plastik
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()
Project details
Release history Release notifications | RSS feed
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.10.0.tar.gz
(875.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
plastik-0.10.0-py3-none-any.whl
(44.9 kB
view details)
File details
Details for the file plastik-0.10.0.tar.gz.
File metadata
- Download URL: plastik-0.10.0.tar.gz
- Upload date:
- Size: 875.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5cfb9075ff092f8187048670ef2996229e4746b6e9a61e0eaad4b22e4e9f0eb
|
|
| MD5 |
77231d4b1aaa1d05925e44e25f3ae7b0
|
|
| BLAKE2b-256 |
9f662eff9899aefd7b9a638e9251911fdaed4aad9df24454c236d53a94f68abe
|
File details
Details for the file plastik-0.10.0-py3-none-any.whl.
File metadata
- Download URL: plastik-0.10.0-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4553cc0ac88a293270e1e45d8670a9b4fb1594b52768430fe2ea415b2f78fee3
|
|
| MD5 |
4e75a3badb9d3e26f65d38fe0726535f
|
|
| BLAKE2b-256 |
f6123b1b5485ce3f841bd2ace652a933ec332905199909066c4fab5da6a50277
|