help-octave
[Top][All Lists]
Advanced

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

Re: assign figure numbers incrementally


From: Søren Hauberg
Subject: Re: assign figure numbers incrementally
Date: Mon, 23 Jul 2007 20:44:23 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

Instead of
  figure(some_number)
just type
  figure()

Should work,
Søren

Kamaraju S Kusumanchi skrev:
I have a octave script which is as follows.

# some lines
figure(1)
plot something here
# more lines
figure(2)
plot something here

The disadvantage with this approach is that, If I rerun the script (after
making some changes), the previous graphs are overwritten. Is there any way
to do something like

# some lines
figure(current figure number + 1)
plot something here
# more lines
figure(current figure number + 1)
plot something here

This way, If I make changes in the script and rerun it, the old figures will
not be overwritten and will be plotted in new windows. Is this possible in
octave? I am using Debian Etch, octave 2.9.9.

I have searched in the octave documentation and in goodle but could not find
anything there.

thanks
raju



reply via email to

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