Shading problem

Hello,
I have a problem with "shading interp". It doesn't work properly, if Idon't plot some additional points over it. Any help?
An example:
%%
n = 20;
data = randn(n);
x = linspace(-180,180,n);
y = linspace(-90,90,n);
figure(1);clf;hold on % Looks OK
pcolor(x,y,data);shading interp
plot(x,y,'w.','markersize',1);hold off % additional plotting
axis tight
figure(2);clf;hold on % Looks funny
pcolor(x,y,data);shading interp;hold off;axis tight
axis on
Janne

답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2012년 3월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by