# Plots.jl @layout macro usage

**URL:** <https://discourse.julialang.org/t/plots-jl-layout-macro-usage/11024>\
**Category:** General Usage\
**Tags:** plotting, layout-plots\
**Created:** [May 20, 2018, 12:49pm UTC](https://discourse.julialang.org/t/plots-jl-layout-macro-usage/11024 "2018-05-20T12:49:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![standarddeviant](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/standarddeviant/32/2309_2.png) [@standarddeviant](https://discourse.julialang.org/u/standarddeviant)\
**Post date:** [May 20, 2018, 12:49pm UTC](https://discourse.julialang.org/t/plots-jl-layout-macro-usage/11024/1 "2018-05-20T12:49:32Z")

</div>

I’m trying to use Plots.jl to create a custom layout with the slick `@layout` macro. The only docs I see are here:  
[http://docs.juliaplots.org/latest/layouts/#advanced-layouts](http://docs.juliaplots.org/latest/layouts/#advanced-layouts)

What I’d like to do is have a plot that has three rows with 6 plots laid out like:

```julia
-----------------
| p1 | p2 |
-----------------
| p3 |
-----------------
| p4 | p5 | p6 |
-----------------

```

I tried the following, but it didn’t work:

```julia
l = @layout[a b; c ; d e f]
plot(p1, p2, p3, p4, p5, p6, layout=l)

```

I think this should be simple with `@layout`, but I’m fuzzy on exactly how `@layout` works. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [May 20, 2018, 3:44pm UTC](https://discourse.julialang.org/t/plots-jl-layout-macro-usage/11024/2 "2018-05-20T15:44:40Z")

</div>

You need space between the macro and the bracket: `@layout [a b ; c ; d e f]`
