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.1.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.1-py3-none-any.whl
(45.0 kB
view details)
File details
Details for the file plastik-0.10.1.tar.gz.
File metadata
- Download URL: plastik-0.10.1.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 |
28353b0086f13b938ce70b4992c07f78d96d931d2d73e38d6e15a114881297a4
|
|
| MD5 |
d28b649d96990a29b411818a80225c19
|
|
| BLAKE2b-256 |
61ae2969633fe11691da278715a65a3abfd46ccbbfac7a777cd4ac4122b71126
|
File details
Details for the file plastik-0.10.1-py3-none-any.whl.
File metadata
- Download URL: plastik-0.10.1-py3-none-any.whl
- Upload date:
- Size: 45.0 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 |
80a21b260068988d02d481eb6d1891a9ede99d3c82cd8fd207efc9647cfa7f0d
|
|
| MD5 |
43fe4706825123e68658512d0235d139
|
|
| BLAKE2b-256 |
34b6b7443f8a1352d7c9deedd0f56bf6f89b8e121dee9466e59cb381f7cadc6a
|