Skip to main content

Easily plot nice-looking arrows with matplotlib

Project description

License PyPI Python Version CI codecov Documentation Status

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()

arrows

Project details


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 details)

Uploaded Source

Built Distribution

mpl_arrow-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file mpl_arrow-0.1.0.tar.gz.

File metadata

  • Download URL: mpl_arrow-0.1.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for mpl_arrow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6878a2db0c981af20c61c367c9e09478ea94affaca6e57fda255e8de73ac775d
MD5 cc7acfbbdb672f92dd2c347338b78e5e
BLAKE2b-256 0d2a166382e8754dc81377f1cf66d4d5a05fa127dbf34270e7f4f57ae7ba8269

See more details on using hashes here.

File details

Details for the file mpl_arrow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mpl_arrow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for mpl_arrow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4ee2646a24d538ab842cf77d30fcc6c39f0709d9a72bf56be1d3cc128630d9
MD5 bacac26d7c239ba7cf1178b48b395e8a
BLAKE2b-256 1bd84de852d264739ecc60acfbb80e8a79d21f09ca3459b4a25b80731a55e321

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page