# Plots / GR cutting off y axis labels / needs more padding

**URL:** <https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778>\
**Category:** General Usage\
**Tags:** plots, statsplots\
**Created:** [December 29, 2021, 7:32pm UTC](https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778 "2021-12-29T19:32:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [December 29, 2021, 7:32pm UTC](https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778/1 "2021-12-29T19:32:32Z")

</div>

I’m plotting some data with StatsPlots and using savefig and winding up with something like this:

 ![timeseries](https://global.discourse-cdn.com/julialang/original/3X/a/6/a694e96a804609e67cc6f7c5c79d81fe6de03135.png)

On the lower plot the y axis label is “Mbps” but it doesn’t show up because it’s “off the screen” can anyone tell me how to make this work?

```julia
@df dat plot(:times + :timens/1e9,:dlrate ./ 1000,title="Bandwidth Setting",label="Download Ra\
te (Mbps)",xlab="time (s)",ylab="Mbps",legend=:topright,xlim=xlimvals,ylim=(0,downmax/1000.0))
p2 = @df dat plot!(:times + :timens/1e9,:uprate ./ 1000,title="Bandwidth Setting",label="Uploa\
d Rate (Mbps)",xlab="time (s)",ylab="Mbps")

```

---

<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:** [December 29, 2021, 8:59pm UTC](https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778/2 "2021-12-29T20:59:11Z")

</div>

Please check if [using Measures](https://discourse.julialang.org/t/statsplots-jl-prints-out-incomplete-subplots/65074/2) helps.

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [December 30, 2021, 1:48am UTC](https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778/3 "2021-12-30T01:48:34Z")

</div>

This does seem to help, but how does it get its notion of 10mm on a png file? I assume there is some default “ppi” assumption?

---

<div class="post-metadata">

**Author:** ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Post date:** [December 30, 2021, 2:26am UTC](https://discourse.julialang.org/t/plots-gr-cutting-off-y-axis-labels-needs-more-padding/73778/4 "2021-12-30T02:26:53Z")

</div>

I think you want `left_margin=2Plots.mm`.

IIRC the space between the “guide” string and the tick numbers was increased to stop things crashing, is now often too big… maybe that confused the margins.
