engineerchuan
engineerchuan

Reputation: 2708

Print Plot in Octave in Background

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?

Upvotes: 8

Views: 4317

Answers (1)

Woltan
Woltan

Reputation: 14023

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")

Upvotes: 13

Related Questions