semvec/pypi-packages huggingface dataset:
drawarrow 0.1.0
Drawing arrows for matplotlib made easy.
Requires Python: >=3.9

> DrawArrow is supported by [Matplotlib Journey](https://www.matplotlib-journey.com/), an interactive online course designed to make you a master of Matplotlib. If you want to **support DrawArrow** and **become a Matplotlib expert**, consider purchasing the course!

<br><br>

# drawarrow

<img src="https://github.com/JosephBARBIERDARNAL/static/blob/main/python-libs/drawarrow/image.png?raw=true" alt="drawarrow logo" align="right" width="200px"/>

Drawing arrows for `matplotlib` made easy.

Check out [the online documentation](https://python-graph-gallery.com/drawarrow/).

<br><br>

## Installation

```
pip install drawarrow
```

<br><br>

## Quick Start

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

![](https://github.com/JosephBARBIERDARNAL/drawarrow/blob/main/img/quick-start.png?raw=true)

<br><br>

## Next steps

You can have a look at this [tutorial](https://python-graph-gallery.com/drawarrow/) or see the [reference](reference/ax_arrow/).

<br><br><br>