[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hold on and hold off in octave-2.9.8
From: |
Joe Koski |
Subject: |
Hold on and hold off in octave-2.9.8 |
Date: |
Sat, 09 Sep 2006 13:55:25 -0600 |
User-agent: |
Microsoft-Entourage/11.2.5.060620 |
Hi all,
I have a loop in one of my scripts:
for i = 1:num_c2f
ifig = ifig + 1;
figure(ifig);
clg;
legend('off');
axis('auto');
title(['Coarse to Fine ',int2str(i),' vs. Signal']);
xlabel ("Time, s")
ylabel ("Amplitude")
hold on;
plot(t,x,'r');
plot(t,c2f(i,:),'b');
hold off;
end
With octave-2.1.73, the "hold on" and "hold off" serve to superimpose the
two plot commands onto one plot frame. With octave-2.9.8, only the second
plot appears in the axes, and the first plot disappears. This is all on my
Mac with octave builds from scratch on OS X 10.4.7, Xcode-2.4, etc.
Has the use of "hold on" changed?
Yes, I can work around it by combining the two plot commands into a single
plot command.
Thanks.
Joe
- Hold on and hold off in octave-2.9.8,
Joe Koski <=