title: Axes but no lines when printing plot in Octave for windows
body: <p>When attempting to print a plot to .png in Octave 3.8.1.1 on Windows 8 64-bit, the axes plot, but the line I'm plotting won't print. The plot I'm creating is:</p>
  
  <pre><code>&gt; t = 0:0.1:6.28318;
  &gt; plot (t, sin(t));
  &gt; print figure.png
  </code></pre>
  
  <p>The resulting plot:</p>
  
  <p><img src="https://i.stack.imgur.com/mv7Qa.png" alt="enter image description here"></p>
  
  <p>And the image saved to disk:</p>
  
  <p><img src="https://i.stack.imgur.com/eizUj.png" alt="enter image description here"></p>
  
  <p>So the axes are showing up fine, but the line I've plotted is completely missing!</p>
  
  <p>I have gs9.09 (win32) installed, with <a href="http://fossies.org/linux/misc/ghost/ghostgum/epstool-3.08-win32.zip/" rel="nofollow noreferrer">epstool win32</a> copied into gs's /bin directory, which is being set in my <code>%HOMEPATH%\.octaverc</code> as:</p>
  
  <pre><code>cmd_path = getenv ("path");
  gs_path = 'C:\Programs\gs\gs9.09\bin';
  if (isempty (strfind (cmd_path, gs_path)))
     setenv ('path', strcat (cmd_path, pathsep (), gs_path));
  endif
  </code></pre>
  
  <p>I am running the windows GUI version via <code>w8-octave-gui.bat</code>.</p>
  
  <p><strong>EDIT</strong>
  On a fresh launch with the following commands to set gnuplot as the graphics toolkit before launching any plots (from @Andy's comments), I get a blank white image for all images without <code>-dpngalpha</code> (1, 2, 4, 5) and completely transparent images with no content for images <em>with</em> <code>-dpngalpha</code> (3, 6):</p>
  
  <pre><code>&gt;&gt; graphics_toolkit("gnuplot");
  &gt;&gt; graphics_toolkit()
  ans = gnuplot
  &gt;&gt; t = 0:0.1:6.3;
  &gt;&gt; plot(t,sin(t));
  &gt;&gt; print ("1.png");
  &gt;&gt; print ("-dpng", "2.png");
  &gt;&gt; print ("-dpngalpha", "3.png");
  &gt;&gt; axis("off");
  &gt;&gt; print ("4.png");
  &gt;&gt; print ("-dpng", "5.png");
  &gt;&gt; print ("-dpngalpha", "6.png");
  </code></pre>
  
  <p>Halp!</p>