help-octave
[Top][All Lists]
Advanced

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

Re: assign figure numbers incrementally


From: James Sherman Jr.
Subject: Re: assign figure numbers incrementally
Date: Mon, 23 Jul 2007 14:55:38 -0400

I know this is a bit of a hack, and horribly inefficient, but you could do something using the "isfigure" command.  To find the first handle that is not a figure, you could do something like:

octave:35> i = 0;
octave:36> while 0,
> i++;
> if !isfigure(i),
> break;
> end
> end

Does this help?

On 7/23/07, Kamaraju S Kusumanchi <address@hidden> wrote:
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

--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

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