help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Silent plot(x,y)


From: Karol Krizka
Subject: Silent plot(x,y)
Date: Thu, 15 Oct 2009 15:33:53 -0700

Hi there,

I'm wondering if it is possible to plot a graph without displaying
anything to the file. Basically, I'm trying to do an animated graph by
plotting them step by step (suggested here:
http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html
) and saving each graph as a file.

In summary, I have the following script:
x=[0:1];
for i=[0:1000]
 plot(x,x*i);
 filename=sprintf("%02d.png",i);
 print(filename);
end

The problem is that plot command displays the graph to the screen, and
I think that it might be slowing (I show more than than 1000 frames..)
down my script. Is there a way to suppress/silent the plot() command?

I'm using octave 3.0.5 from the Ubuntu Karmic repositories.

After some googling, I found the following suggestion:
gset term postscript eps color
gset output "name.eps"

But:
octave:1> gset term postscript eps color
parse error:

  syntax error

>>> gset term postscript eps color
             ^

octave:1> gset output "name.eps"
parse error:

  syntax error

>>> gset output "name.eps"
               ^
Any suggestions? Am I missing some package?
--
Cheers,
Karol Krizka


reply via email to

[Prev in Thread] Current Thread [Next in Thread]