Currently, I use print -dpng foo.png to print a plot to file in Octave 3.0.1 on Ubuntu.
print -dpng foo.png
Sometimes, I generate thousands of images in a loop.
Whe
It would be easier to answer your question with a little more information about what you are doing. But with a little guessing maybe this is what you need:
f = figure set(f, "visible", "off") plot([1,2,3,4]) print("MyPNG.png", "-dpng")