I am trying to generate several plots while working in the REPL, that must be displayed individually (i.e., a new window for each plot). When I am trying to do so, however, each new plot replaces the old plot in the same window. To be clearer, I have the following code
using Plots
x = 1:10
display(plot(x,x, label="linear"))
display(plot(x,x.^2, label="quadratic"))
I expect two different windows to open and display a plot for each. However, running line 3, a window opens, showing the “linear” plot. Then, running line 4, the “linear” plot disappears and it is replaced by te “quadratic” plot, with no new window opening.
I tried to change backend, using Makie.jl instead of Plots.jl, using the gui()
command. Nothing changes.
How can I have two different windows opening?