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 rye:
git clone https://github.com/engeir/plastik.git
cd plastik
rye 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.8.4.tar.gz
(793.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.8.4-py3-none-any.whl
(42.0 kB
view details)
File details
Details for the file plastik-0.8.4.tar.gz.
File metadata
- Download URL: plastik-0.8.4.tar.gz
- Upload date:
- Size: 793.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b026a0be2867405d329a2c5d024e377dcd9ad484189ea9ef2250f405bcb5d41
|
|
| MD5 |
f7e030921802e07f9aa41e4e83d6bc91
|
|
| BLAKE2b-256 |
d540a130fb53b3ffca0871d0e986cb7f331706d4a4c2ceab72443e627adb9ae1
|
File details
Details for the file plastik-0.8.4-py3-none-any.whl.
File metadata
- Download URL: plastik-0.8.4-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87bf658d118be9d5f593f2bcd0902de7813b15266e8e97d8696126d25d09810d
|
|
| MD5 |
da113b43acf88733f6773376b493ae6b
|
|
| BLAKE2b-256 |
6f4f6cea80cff9e925282f926eb1ca43bd3f710f77083553f27c4abd28a1c38d
|