title: Show graph on display and save it to file simultaneously in gnuplot
body: <p>How can I save graph in to file and also print it to display? I've tried:</p>
  
  <pre><code>#!/usr/bin/gnuplot -p
  
  date=system("date +%F_%T | sed 's/:/-/g'")
  
  set term png
  set output date.".png"
  
  set term x11
  set out
  
  plot sin(x)
  </code></pre>
  
  <p>PS: Is there a possibility to save the graph which is displayed in gnuplot window? I've noticed that there is copy to clipboard button but no save.</p>