Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-16 Thread Scott T
Hi Tom, just to let you know that I'm putting together some subplot demos for ExamplePlots.jl. I was hoping to show some examples of linking axes, but I got a little overambitious and it's not quite the result I intended. I have popped the question on Discourse

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-16 Thread Ferran Mazzanti
That's not the point but it doesn't really matter :) On Tuesday, November 15, 2016 at 12:41:54 PM UTC+1, Tom Breloff wrote: > > Serious "give a mouse a cookie syndrome". You can do what you want by > calling 'plot_6 = deepcopy(plot_5)' first. > > On Tuesday, November 15, 2016, Ferran Mazzanti

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-15 Thread Tom Breloff
Serious "give a mouse a cookie syndrome". You can do what you want by calling 'plot_6 = deepcopy(plot_5)' first. On Tuesday, November 15, 2016, Ferran Mazzanti wrote: > Oh, now I see that just by copying plot_5 with a new name plot_6 and > replacing > > plot( plot_1,

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-15 Thread Ferran Mazzanti
Oh, now I see that just by copying plot_5 with a new name plot_6 and replacing plot( plot_1, plot_2, plot_3, plot_4, plot_5, plot_5, layout = lay ) with plot( plot_1, plot_2, plot_3, plot_4, plot_5, plot_6, layout = lay ), it works. But IT IS a bug, there is no reason why should not be able

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Tom Breloff
The behavior is currently undefined if you pass in the same plot twice. Unless there's a compelling reason, I don't think that will change. On Monday, November 14, 2016, Scott T wrote: > Oh my mistake, I see you have supplied plot_5 twice. If I do that, I get > the

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Scott T
Oh my mistake, I see you have supplied plot_5 twice. If I do that, I get the problem you describe. I'm not quite sure why you'd want to repeat a plot, but it looks like this is causing problems. If you really want to include plot_5 twice, I suggest making a new plot_6 with the same parameters

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Scott T
The layout has space for 6 plots but the final plot command only supplies 5. When I run your example (on the development branch of Plots) I get an error because of that. Have you tried the dev branch? `Pkg.checkout("Plots, "dev")`, restart julia and re-run it. Scott On Monday, 14 November

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Ferran Mazzanti
It is a minor variation of the example given by Scott for some data set y, cosy, y2, sqrty, siny, logy (doesn't matter the values, could be random) plot_1 = plot([y cosy], title = "Data y", xlims = (0,10), ylims = (-0.1,1.1), grid = true, xlabel = "Iteration", ylabel

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Patrick Kofod Mogensen
Hi Ferran, First of all, it is so much easier for people to help you if you post the code you don't understand isn't working. Best, Patrick On Monday, November 14, 2016 at 9:35:03 AM UTC+1, Ferran Mazzanti wrote: > > Hi again, > > thanks Scott. That doesn't work on my ubuntu machine. Looks

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-14 Thread Ferran Mazzanti
Hi again, thanks Scott. That doesn't work on my ubuntu machine. Looks like this is too complex a plot, and what I get is a big plot with a single subplot on it. That's whay I was asking for help, actually... If I reduce the grid to 2x1 (so putting 2 plots instead of 4 in the grid), things work

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-11 Thread Tom Breloff
"@layout [a grid(2,2); b]" should work On Friday, November 11, 2016, Ferran Mazzanti wrote: > Sorry for sneaking in again, but I have tried to extrapolate the examples > in the notebook (thanks again Scott) to include a fifth plot below (that > is, to get the same

[julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-08 Thread Ferran Mazzanti
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