help-octave
[Top][All Lists]
Advanced

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

Silent plot(x,y)


From: John W. Eaton
Subject: Silent plot(x,y)
Date: Fri, 23 Oct 2009 22:31:02 -0400

On 15-Oct-2009, Karol Krizka wrote:

| 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?

Try using

   figure (1, 'visible', 'off')

before your other plotting commands.

jwe


reply via email to

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