Mpltoolbox
About
Mpltoolbox aims to provide some basic tools (that other libraries such as bokeh or plotly support) for drawing points, lines, rectangles, polygons on Matplotlib figures.
There are many interactive examples in the Matplotlib documentation pages, but the code snippets are often long and potentially not straightforward to maintain.
With mpltoolbox, activating these tools should (hopefully) just be a one-liner.
Installation
python -m pip install mpltoolbox
Examples
import matplotlib.pyplot as plt
import mpltoolbox as tbx
%matplotlib widget
Points
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)
points = tbx.Points(ax=ax)
Lines
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)
lines = tbx.Lines(ax=ax, n=2)
Rectangles
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)
rectangles = tbx.Rectangles(ax=ax)
Ellipses
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)
ellipses = tbx.Ellipses(ax=ax)
Metadata
Release files for mpltoolbox 26.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mpltoolbox-26.2.0.tar.gz | 317.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mpltoolbox-26.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 338.6 kB
Release files / mpltoolbox-26.2.0.tar.gz
| Download URL | mpltoolbox-26.2.0.tar.gz |
|---|---|
| Size | 317.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8a600b35f1efe67a9ae4004cf75e15a33a2c281b12dbb55d155191f834aac1f
|
|
BLAKE2b-256 checksum How to use checksums |
517066304fa8bb9df07e1c5083f9ec96bfb56160fa7f420a4660b548575f1cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.
Transparency logRelease files / mpltoolbox-26.2.0-py3-none-any.whl
| Download URL | mpltoolbox-26.2.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd2668db4216fc4d7c2ba37974961aa61445f1517527b645b6082930e35ba7f0
|
|
BLAKE2b-256 checksum How to use checksums |
12aafb2a0649fdeef5ab7072d221e8f4df164098792c813af6c87e2581cfa860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.
Transparency log