Thanks for putting those examples together Scott. Do you want to contribute that to ExamplePlots?
Ferran: as Scott has shown nicely, there's an ton of different ways to do what you want, and the "right" way is going to depend on your problem... what the layouts/data look like. Many times it's easiest to build the plots independently and then just do: plot(p1, p2, p3, p4, p5, layout = ...) On Tue, Nov 8, 2016 at 11:18 AM, Ferran Mazzanti <ferran.mazza...@gmail.com> wrote: > Oh! > Scott you're very kind to take your time helping me with the notebook... > thanks a lot. I'll take a careful look and report back if I find problems. > Best, > Ferran. > > > On Tuesday, November 8, 2016 at 1:22:20 PM UTC+1, Scott T wrote: >> >> You can break down the plot command into chunks and then call plot on >> those chunks to build up a plot from several pieces. In this way, you can >> make individual plots with multiple series. Then you can combine them >> according to your desired layout. >> >> This isn't the best place to post a full example so I put a notebook up >> for you to have a look at here: >> https://gist.github.com/swt30/54701d09cfa479dab78a5bc2fa857fd7 >> >> Cheers, >> Scott >> >> On Tuesday, 8 November 2016 09:20:39 UTC, Ferran Mazzanti wrote: >> >>> Hi, >>> >>> I'm gathering interest in Plots.jl in order to make complex plotting >>> structures. Just as an example, I have a set of data (called y) and some >>> operations performed on it, stored in arrays of obvious names y2, logy, >>> expy etc... >>> >>> I have managed to create something that displays one curve per plot >>> >>> lay = @layout [ a{0.4w} grid(2,2) ] >>> plot( >>> [y y2 sqrty logy expy], >>> layout = lay, >>> grid = [true false false false false], >>> title = ["y" "y^2" "sqrt(y)" "log(y)" "exp(y)"],titleloc="center",ti >>> tlefont=font(12), >>> xlims = [(0,12) (0,10) (0,20) (0,20) (0,12) ], >>> ) >>> >>> which puts one curve in each plot. What would be the needed >>> modifications here in order to >>> plot y and cosy in the first plot, and sqrty and siny on the second plot? >>> >>> Thanks for your help, >>> >>> Ferran. >>> >>