https://github.com/josephbarbierdarnal/drawarrow
Drawing arrows for matplotlib made easy
https://github.com/josephbarbierdarnal/drawarrow
arrow matplotlib python
Last synced: 3 months ago
JSON representation
Drawing arrows for matplotlib made easy
- Host: GitHub
- URL: https://github.com/josephbarbierdarnal/drawarrow
- Owner: JosephBARBIERDARNAL
- License: mit
- Created: 2024-07-12T14:21:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-24T13:53:41.000Z (5 months ago)
- Last Synced: 2025-06-21T09:04:44.443Z (4 months ago)
- Topics: arrow, matplotlib, python
- Language: Python
- Homepage: https://josephbarbierdarnal.github.io/drawarrow/
- Size: 5.6 MB
- Stars: 32
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drawarrow
Drawing arrows for `matplotlib` made easy.
Check out [the online documentation](https://python-graph-gallery.com/drawarrow/).
## Quick Start
```python
import matplotlib.pyplot as plt
from drawarrow import fig_arrowfig, 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()
```
## Installation
```
pip install drawarrow
```
## Next steps
You can have a look at this [tutorial](https://python-graph-gallery.com/drawarrow/) or see the [examples](https://josephbarbierdarnal.github.io/drawarrow/reference/ax_arrow/#examples).