Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.31 KB

README.md

File metadata and controls

66 lines (40 loc) · 1.31 KB

drawarrow

drawarrow logo

Drawing arrows for matplotlib made easy.

Check out the online documentation.



Installation

Note: drawarrow requires Python 3.9 or above.

You can install drawarrow directly from PyPI with:

pip install drawarrow



Quick Start

import matplotlib.pyplot as plt
from drawarrow import fig_arrow

fig, ax = plt.subplots()

ax.scatter(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5], s=100)

fig_arrow(
    head_position=(0.5, 0.5),
    tail_position=(0.2, 0.7),
    width=2,
    radius=0.3,
    color="darkred",
    fill_head=False,
    mutation_scale=2,
)

plt.show()



Usage guide

Check out the online documentation.

Features overview:



Contributions

Contributions (and feedback) are welcome.

There's not much that needs to be implemented at the moment. If you've found a bug or want to request a new feature, open an issue.