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.3.tar.gz
(793.8 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.3-py3-none-any.whl
(41.9 kB
view details)
File details
Details for the file plastik-0.8.3.tar.gz.
File metadata
- Download URL: plastik-0.8.3.tar.gz
- Upload date:
- Size: 793.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1441c02c0e33fdba06ee12fe57668436ee82d4ded9a605107ab084a069ec42ee
|
|
| MD5 |
fa42dab88ef519ad9abf5197f2bb628b
|
|
| BLAKE2b-256 |
76592dddd6f740fb6dc93a25aeace35475d10dc29d4c4a96662ed4d3d4accbf2
|
File details
Details for the file plastik-0.8.3-py3-none-any.whl.
File metadata
- Download URL: plastik-0.8.3-py3-none-any.whl
- Upload date:
- Size: 41.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50be251ef930fc2bad5c3412af6903a38a302cc1a76297f449bd4c282b2db204
|
|
| MD5 |
eb770d514599c143155e01228730e4f8
|
|
| BLAKE2b-256 |
9ec75f1a8c0038e77cb10c41e8e54649bdb74d541a7d4e1295890a9d3966bb0c
|