nim
2004-09-08 18:34:59 UTC
Hi,
I would appreciate if anyone helps me. I am plotting several sets of
data in the SAME figure(with the same X and Y axes). The following
one works fine:
for I=1:P
hold on;
imagesc(time(I),time_frq(:,1,I),time_frq(:,2,I));
colorbar
Ylabel('Freqency');
Xlabel('Time in minutes')
end
hold off;
but when I use subplot it does not work. Every time, only last set of
data is plotted, and not others.
for I=1:P
hold on;
SUBPLOT(2,2,1),imagesc(time(I),time_frq(:,1,I),time_frq(:,2,I));
colorbar
Ylabel('Freqency');
Xlabel('Time in minutes')
14:15)),'/',num2str(date_time(18:19)) ])
end
hold off;
It seems to me that "hold on" is not working with subplot. Could
anyone please suggest me anything?
Thanks in advance.
Nim
I would appreciate if anyone helps me. I am plotting several sets of
data in the SAME figure(with the same X and Y axes). The following
one works fine:
for I=1:P
hold on;
imagesc(time(I),time_frq(:,1,I),time_frq(:,2,I));
colorbar
Ylabel('Freqency');
Xlabel('Time in minutes')
end
hold off;
but when I use subplot it does not work. Every time, only last set of
data is plotted, and not others.
for I=1:P
hold on;
SUBPLOT(2,2,1),imagesc(time(I),time_frq(:,1,I),time_frq(:,2,I));
colorbar
Ylabel('Freqency');
Xlabel('Time in minutes')
14:15)),'/',num2str(date_time(18:19)) ])
end
hold off;
It seems to me that "hold on" is not working with subplot. Could
anyone please suggest me anything?
Thanks in advance.
Nim