Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print Plot in Octave in Background

Tags:

octave

gnuplot

Currently, I use print -dpng foo.png to print a plot to file in Octave 3.0.1 on Ubuntu.

Sometimes, I generate thousands of images in a loop.

Whenever a new image pops up, it grabs the mouse control precluding me from multitasking.

Is there anyway to print silently or quietly?

like image 409
engineerchuan Avatar asked Jun 09 '11 08:06

engineerchuan


1 Answers

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")
like image 56
Woltan Avatar answered Nov 03 '22 16:11

Woltan