Skip to content

y-sunflower/drawarrow

Repository files navigation

drawarrow

drawarrow logo

Drawing arrows for matplotlib made easy.

Check out the online documentation.

PyPI Downloads Image



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

Image



Installation

pip install drawarrow



Next steps

You can have a look at this tutorial or see the examples.




About

Drawing arrows for matplotlib made easy

Topics

Resources

License

Stars

Watchers

Forks

Contributors