title: Show Two Plots in Separate Windows Using Plots
body: <p>let's assume I have a file called plot.jl:</p>
  <pre><code>using Plotsfunction plotSine()
      x = LinRange(0,2π, 101)
      y = sin.(x)    gr()
      p = plot(x,y, title=&quot;Sine from 0 to 2π&quot;, xlabel=&quot;x&quot;, ylabel=&quot;y&quot;)
      display(p)
  endfunction plotTwoFunctions()
      x = LinRange(0, 2, 101)
      y1 = exp.(x)
      y2 = log.(x)    gr()
      p = plot(x,y1, title=&quot;Two functions&quot;, xlabel=&quot;x x&quot;, ylabel=&quot;y&quot;)
      plot!(p, x,y2)
      display(p)
  endplotSine()
  plotTwoFunctions()
  </code></pre>
  <p>I starta REPL session and include it and it opens the window for the sine function plot but that get's instantly overwritten by the second function call.</p>
  <p>Is there a blocking display() function? Can I somehow force a new window to open?</p>