# How do you move the ylabel away from the yaxis? Changing the margins doesn't help

**URL:** https://discourse.julialang.org/t/how-do-you-move-the-ylabel-away-from-the-yaxis-changing-the-margins-doesnt-help/23710
**Category:** General Usage
**Tags:** plotting
**Created:** [April 30, 2019, 7:19pm UTC](https://discourse.julialang.org/t/how-do-you-move-the-ylabel-away-from-the-yaxis-changing-the-margins-doesnt-help/23710 "2019-04-30T19:19:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shea\_Fitzgerald](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shea_fitzgerald/32/8249_2.png) [@Shea\_Fitzgerald](https://discourse.julialang.org/u/Shea_Fitzgerald)
#### Post date: [April 30, 2019, 7:19pm UTC](https://discourse.julialang.org/t/how-do-you-move-the-ylabel-away-from-the-yaxis-changing-the-margins-doesnt-help/23710/1 "2019-04-30T19:19:11Z")

</div>

Here’s my sample:

```julia
using Plots
using Plots.PlotMeasures

fo = font(18)

gr(titlefont=fo, guidefont=fo, tickfont=fo, legendfont=fo, show = true, size=(700,200))

plot(
    plot([0.01,0.02,0.03,0.04],label = L"\sigma_E")
    ,xlabel = "Timestep"
    ,bottom_margin=10px
    ,left_margin = 50px
    ,ylabel = "test"
)

```

 ![ylabel](https://global.discourse-cdn.com/julialang/original/3X/f/7/f78e0aa73b9fb0dd65182fbf817ee2dbe81413d6.png)

How can I fix this collision with the label? Moving the margin just shifts the whole problem to the right…

---

<div class="post-metadata">

### Author: ![Fuglsang](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@Fuglsang](https://discourse.julialang.org/u/Fuglsang)
#### Post date: [June 4, 2019, 2:14am UTC](https://discourse.julialang.org/t/how-do-you-move-the-ylabel-away-from-the-yaxis-changing-the-margins-doesnt-help/23710/2 "2019-06-04T02:14:14Z")

</div>

I am having the exact same problem and have not found a solution yet. If I get the right size, sometimes it is ok, but this is very time consuming and ineffective. I hope someone has an answer. I use GR.
