Sequentially adding lines with plot! ending up in overwriting

I think you need to name your plot, e.g. p = plot(...), and then update it with plot!(p,....)

1 Like