# How to add a rotated annotation using Plots.jl?

**URL:** <https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705>\
**Category:** Visualization\
**Created:** [January 23, 2020, 3:44pm UTC](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705 "2020-01-23T15:44:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tianzhu\_Xiong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tianzhu_xiong/32/12293_2.png) [@Tianzhu\_Xiong](https://discourse.julialang.org/u/Tianzhu_Xiong)\
**Post date:** [January 23, 2020, 3:44pm UTC](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705/1 "2020-01-23T15:44:40Z")

</div>

Sometimes it is convenient to squeeze in a rotated (eg. vertically placed) text in a thin figure. The `annotate!()` method in Plots.jl seems to only produce horizontal text in the plot, is there any trick to rotate the text?

===Update===  
solved: see

> [@Problems trying to rotate annotations in a plot](https://discourse.julialang.org/t/problems-trying-to-rotate-annotations-in-a-plot/23639):
>
> Hi, I am trying to write some annotations in a plot, but instead of horizontally, I would like them to do that vertically. I am using Julia 0.6.4. My code is like: using Plots # Notice: I'm not using Pyplot package, but just the back-end! pyplot() # Initialize plot wanted\_font = font(9, "georgia") fig\_2 = plot( tickfont = wanted\_font, legendfont = wanted\_font, guidefont = wanted\_font, xlabel = "My x-axis", ylabel = "My y-axis", size = (600,300), legend = false, grid = false, xmin = 0, ym…

---

<div class="post-metadata">

**Author:** ![JiangXL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jiangxl/32/13720_2.png) [@JiangXL](https://discourse.julialang.org/u/JiangXL)\
**Post date:** [June 29, 2020, 12:16pm UTC](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705/2 "2020-06-29T12:16:50Z")

</div>

This work for my environment:

````julia
annotate!(5,10, Plots.text("text", 10, :dark, rotation = 90 ))```

Julia 1.4.2, Plots v1.4.3
````

---

<div class="post-metadata">

**Author:** ![sz1992](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sz1992/32/19219_2.png) [@sz1992](https://discourse.julialang.org/u/sz1992)\
**Post date:** [July 8, 2020, 5:21pm UTC](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705/3 "2020-07-08T17:21:29Z")

</div>

Hi,  
your example does not work with plotly backend.  
Is this not supported in plotly backend?  
Note thath this example Works in GR backend.
