# Horizontal y label with Plots.jl

**URL:** <https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [March 25, 2018, 3:29pm UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967 "2018-03-25T15:29:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)\
**Post date:** [March 25, 2018, 3:29pm UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967/1 "2018-03-25T15:29:12Z")

</div>

Is there any way to make the y axis label horizontal in Plots.jl (with pyplot backend)?

Thanks

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [March 25, 2018, 7:07pm UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967/2 "2018-03-25T19:07:45Z")

</div>

Does `yrotation` work?

---

<div class="post-metadata">

**Author:** ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)\
**Post date:** [March 25, 2018, 11:44pm UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967/3 "2018-03-25T23:44:37Z")

</div>

`yrotation` affects the tick marks, not the label.

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [August 13, 2019, 10:50am UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967/4 "2019-08-13T10:50:54Z")

</div>

Maybe This tweet solves our problem

- [https://twitter.com/genkuroki/status/1161221370614706176](https://twitter.com/genkuroki/status/1161221370614706176)

See also

- [How to make ylabel horizontal? · Issue #1527 · JuliaPlots/Plots.jl · GitHub](https://github.com/JuliaPlots/Plots.jl/issues/1527)

```julia
using Plots
using Plots.PlotMeasures: mm

plot(; size = (500, 300))
plot!(
   x -> x^3 - 8 * x^2,
   0,
   10,
   xlab = "abcde",
   xrotation = 45,
   left_margin = 10mm,
   bottom_margin=5mm,
)
annotate!(-1.2, 0., text("goma", 10))

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/9/49f622eced7e3f37f33880b35dd9d6766c18506d.png)

---

<div class="post-metadata">

**Author:** ![szcf-weiya](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/szcf-weiya/32/5042_2.png) [@szcf-weiya](https://discourse.julialang.org/u/szcf-weiya)\
**Post date:** [June 15, 2020, 3:36pm UTC](https://discourse.julialang.org/t/horizontal-y-label-with-plots-jl/9967/5 "2020-06-15T15:36:58Z")

</div>

You can use `yguidefontrotation`. For example,

```julia
using Plots
pyplot()
plot(plot(1:10, ylab="y"), plot(1:10, ylab="y", yguidefontrotation=-90))

```

 ![Selection_011](https://global.discourse-cdn.com/julialang/original/3X/3/2/32462eb58fd13c87d47838e47a6b91631c198fff.png)
