Plots.jl @layout macro usage

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

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

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

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

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!

1 Like

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

4 Likes