title: GNUPlot disappears immediately after its creation
body: <p>I have created the <code>gnuplot</code>, but the problem is that it disappears immediately. I tried different solutions proposed in other threads, but none of them worked. Solution 1: comment the line <code>bf.append("quit").append(NL);</code> in the file <code>GNUPlotParameters.java</code>. Solution 2: put the line <code>gp.setPersist(true);</code> before <code>gp.plot();</code>.</p>
  
  <pre><code>DataSetPlot plotdata = new DataSetPlot(Xvals);
  plotdata.setTitle("");
  GNUPlot gp = new GNUPlot("C:\\Program Files (x86)\\gnuplot\\bin\\pgnuplot.exe");
  gp.addPlot(plotdata);
  gp.plot();
  gp.setPersist(true);
  </code></pre>
  
  <p>So, how to solve this problem?</p>
  
  <p>P.S. I'm running this code on Windows 7.</p>