I write a simple script, plotex1.jl to produce a plot;
pyplot() # Switch to using the PyPlot.jl backend
plot1 = plot(rand(10,10),linewidth=2,title=“Plot 1”)
The I run the script from my terminal
$ julia plotex.jl
I see the plot flash for a split second and then it disappears. How can I make the plot window stay open?
(If I run the code from REPL, the last line is not needed and the plot window shows and stays open)