# Make subplots larger in Plots.jl

**URL:** <https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488>\
**Category:** General Usage\
**Tags:** plotting, plots\
**Created:** [October 16, 2020, 1:31pm UTC](https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488 "2020-10-16T13:31:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 16, 2020, 1:31pm UTC](https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488/1 "2020-10-16T13:31:04Z")

</div>

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

I generate a group of subplots by `plot(<plots>..., layout=<number of plots>)`

Is there a way to set make the height of those plots larger without setting an absolute size? (I’m working from a notebook)

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [October 16, 2020, 2:44pm UTC](https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488/2 "2020-10-16T14:44:55Z")

</div>

You may try

```julia
using Plots.PlotMeasures
plot(..., margin=-5mm)

```

It’s not a super good approach, but it sometimes allow you to get the plot you want.

You can also try to only have an x label on the bottom plot, together with `link = :x` to make sure the X-axis of each plot is synced with the bottom plot.

---

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 16, 2020, 3:10pm UTC](https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488/3 "2020-10-16T15:10:59Z")

</div>

margin=-2mm helped a bit (seems also to depend on the backend) but I’d rather make the plots larger

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [October 16, 2020, 3:45pm UTC](https://discourse.julialang.org/t/make-subplots-larger-in-plots-jl/48488/4 "2020-10-16T15:45:59Z")

</div>

I think increasing the overall height of the plot via `size` is the only way I know
