Discussion:
non-interactive plotting in octave 2.9.19 +
(too old to reply)
Mair flurble
2008-04-05 15:25:56 UTC
Permalink
Hi,

I am trying to write an octave program to process a bunch of data and
generate some graphs. However, I don't want to view the graphs
interactively, I just want to leave the code running while I do other
things. I'm finding it really annoying that octave's 'plot' command
pops up a window every time.

It seems that in earlier versions of octave, the way to achieve this
was to use gset,
gset term png
gset output "savefile.png"
plot [etc]
However, now that gset is deprecated, I can't work out what the
alternative should be. What is the "new" way of plotting/saving graphs
without X?

Thanks,
Mair
David Bateman
2008-04-06 08:04:29 UTC
Permalink
Post by Mair flurble
Hi,
I am trying to write an octave program to process a bunch of data and
generate some graphs. However, I don't want to view the graphs
interactively, I just want to leave the code running while I do other
things. I'm finding it really annoying that octave's 'plot' command
pops up a window every time.
It seems that in earlier versions of octave, the way to achieve this
was to use gset,
gset term png
gset output "savefile.png"
plot [etc]
However, now that gset is deprecated, I can't work out what the
alternative should be. What is the "new" way of plotting/saving graphs
without X?
Use the matlab syntax

figure(1, "visible", "off");
plot(sin(1:100));
print -dpng savefile.png

D.

Loading...