Ah! That was it, thanks! Now for anybody else who may have the same question, this minimal code does what I wanted it to do
using PyPlot x = 1:21 y1 = randn(21) y2 = randn(21) PyPlot.ioff() PyPlot.plot(x,y1,color="red",marker="*",linestyle="none") PyPlot.show() PyPlot.plot(x,y2,color="blue",marker="*",linestyle="dashed") PyPlot.show() ...so the key was the PyPlot.ioff() really. Thanks Steven and thanks toyou guys who provided help also :) On Sunday, April 26, 2015 at 3:57:36 AM UTC+2, Steven G. Johnson wrote: > > > > On Saturday, April 25, 2015 at 11:21:24 AM UTC-4, Ferran Mazzanti wrote: > >> I'm new to Julia (but not to Python) and can't find he right way to use >> PyPlot as I do in Python. In short, I have a program that should display a >> plot, wait for the user to close the plot, then show a second plot and g on >> running. But it is not doing that: it just merges the two plots in one and >> goes on. The only thing I've managed to do so far is to show the first >> plot, wait for some time, then show the second plot, and go on: >> > > That's because PyPlot defaults to interactive mode. Just run ioff() to > turn off interactive mode, and the show() command will be blocking. >
