Strange behavior of plot---plot successful only if it is the last line of the code

With Plots.jl you have two options: (i) plot(p, p2) , (ii) create two separate windows.
The latter works for a number of backends - see this thread.

1 Like