# Grid layout for multiple plots

**URL:** https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528
**Category:** Visualization
**Tags:** question, plotting, plots, layout-plots
**Created:** [April 13, 2020, 7:36pm UTC](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528 "2020-04-13T19:36:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Farhan\_Samir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/farhan_samir/32/13005_2.png) [@Farhan\_Samir](https://discourse.julialang.org/u/Farhan_Samir)
#### Post date: [April 13, 2020, 7:36pm UTC](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528/1 "2020-04-13T19:36:26Z")

</div>

Hi,

I’m trying to create a 2 by 10 grid of plots. The [Plots documentation](https://docs.juliaplots.org/latest/layouts/) provides an example for a 2x2 grid:

```julia
plot(rand(10,4), layout=grid(2,2),ticks=nothing)

```

However, extending this to

```julia
plot(rand(10,20),layout=grid(2,10),ticks=nothing)

```

doesn’t seem to work well.  
 ![example](https://global.discourse-cdn.com/julialang/original/3X/3/0/30dfa5efcb15b9e18f46f292e1fb0ed3f0997ca5.png)  
In particular, I’d like to compress the y-axis for each of the plots.

Is there a way to do that?

---

<div class="post-metadata">

### Author: ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)
#### Post date: [April 13, 2020, 8:28pm UTC](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528/2 "2020-04-13T20:28:55Z")

</div>

You could set the size of plot so that the y axis was much smaller than the x axis. E.g. `size = (1000, 100)`.

---

<div class="post-metadata">

### Author: ![Farhan\_Samir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/farhan_samir/32/13005_2.png) [@Farhan\_Samir](https://discourse.julialang.org/u/Farhan_Samir)
#### Post date: [April 13, 2020, 8:42pm UTC](https://discourse.julialang.org/t/grid-layout-for-multiple-plots/37528/3 "2020-04-13T20:42:54Z")

</div>

That works, thanks very much
