title: Cannot save plots in Octave using print()
body: <p>I'm simply trying to print the current figure in Octave to a <code>.png</code> file using the <code>print()</code> function. The documentation seems pretty straightforward, but it's not working. I get no error messages, but the files are nowhere to be found. I am doing</p>
  
  <pre><code>filename = sprintf('/home/me/Desktop/file_%d.png',n);
  print(filename, '-dpng');
  </code></pre>
  
  <p>where <code>n</code> is just some loop counter variable. Again, I get no error, but when I check <code>/home/me/Desktop/</code>, there are no files. Am I doing this wrong?</p>