Easily plot nice-looking arrows with matplotlib
Project description
mpl-arrow
A simpler way to draw nice arrows in matplotlib
Installation
pip install mpl-arrow
Example usage:
import matplotlib.pyplot as plt
from mpl_arrow import arrow, arrow_absolute, vector
fig, ax = plt.subplots()
# x, y, dx, dy
arrow(1, 0, 2, 0.5, label="arrow")
# x, y, x2, y2
arrow_absolute(1, 0.5, 3.5, 2, label="arrow absolute")
# dx, dy
vector(4, 4, label="vector")
# dx, dy, x, y
vector(4, 4, x=0, y=2, label="vector with offset")
plt.legend()
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
mpl_arrow-0.1.0.tar.gz
(45.9 kB
view hashes)
Built Distribution
Close
Hashes for mpl_arrow-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4ee2646a24d538ab842cf77d30fcc6c39f0709d9a72bf56be1d3cc128630d9 |
|
MD5 | bacac26d7c239ba7cf1178b48b395e8a |
|
BLAKE2b-256 | 1bd84de852d264739ecc60acfbb80e8a79d21f09ca3459b4a25b80731a55e321 |