# How to annotate with arrows in Julia Plots?

**URL:** <https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [August 24, 2021, 6:11pm UTC](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931 "2021-08-24T18:11:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [August 24, 2021, 7:39pm UTC](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931/2 "2021-08-24T19:39:55Z")

</div>

You could use Plots.jl pyplot() backend with those specific annotation functions.  
Otherwise you may use `quiver!` and `annotate!`, which work for several Plots.jl backends. A basic example follows:

```julia
using Plots; gr()
plot(sin, 0:0.1:2π, label="sin(x)")
quiver!([π + 1], [0.2], quiver=([-1], [-0.2]))
annotate!([π + 1], [0.3],"sin(x)=0")

```

 ![Plots_gr_annotate_with_arrows_and_text](https://global.discourse-cdn.com/julialang/original/3X/0/5/05ee7f72bb08bdb14305b7e03effbaeea34a90d1.png)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931)._
