This should work as you want: plot([[1, 2, 4],[1,5,10,3]], layout=2, link=:all)
There seems to be a bug with the link attribute when combining subplots. I'll look into it. On Wed, Oct 12, 2016 at 2:13 PM, r5823 <jmell...@gmail.com> wrote: > Is there a way to make the yaxis and/or the xaxis limits uniform across > subplots in Plots.jl? > > For example, given the code: > > using Plots > gr() > p1 = Plots.plot([1, 2, 4]) > p2 = Plots.plot([1,5,10,3]) > Plots.plot(p1,p2,layout=(1,2)) > > The hope would be to substitute something along the lines of > Plots.plot(p1,p2,layout=(1,2), layout_ylim=:auto) that would result in a > ymax for both subplots being 10. Similarly, something along the lines of > Plots.plot(p1,p2,layout=(1,2), layout_xlim=:auto) to make the xmax for both > subplots be 4 >