- 积分
- 9720
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-3-15
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
问题如下:在运行之后,点击运行shading interp 之后图1就变成图2这样子,主要是图2 上边和右边都出现空白,想问下大家该怎么弄才能完整填充整个图,不出现空白呢?
程序如下:
clear;clc;
data=xlsread('F:\断面a最大值1月16层.xls');
figure(2)
TT1=data(1,:)-mean(data(1,:));TT2=data(2,:)-mean(data(2,:));
TT3=data(3,:)-mean(data(3,:));TT4=data(4,:)-mean(data(4,:));
TT5=data(5,:)-mean(data(5,:));TT6=data(6,:)-mean(data(6,:));
TT7=data(7,:)-mean(data(7,:));TT8=data(8,:)-mean(data(8,:));
TT9=data(9,:)-mean(data(9,:));TT10=data(10,:)-mean(data(10,:));
TT11=data(11,:)-mean(data(11,:));TT12=data(12,:)-mean(data(12,:));
TT13=data(13,:)-mean(data(13,:));TT14=data(14,:)-mean(data(14,:));
TT15=data(15,:)-mean(data(15,:));
TT=[TT1;TT2;TT3;TT4;TT5;TT6;TT7;TT8;TT9;TT10;TT11;TT12;TT13;TT14;TT15];
row=zeros(1,67);column=zeros(15,1);
data1=[row;TT column];data1(data1==0)=nan;
[X,Y]=meshgrid(0:1:66, 0:1:15);
Z=flipud(data1);
h=pcolor(X,Y,Z);
caxis([-2.1,1.5]);
colorbar('EastOutside');
colormap(jet(128));
set(gca,'YTickLabel',{'700','600','500','400','300','250','200','150','125','100','75','50','30','20','10','0'},...
'YTick',[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15],...
'XTickLabel',{'1945','1951','1957','1963','1969','1975','1981','1987','1993','1999','2005','2010'},...
'XTick',[0 6 12 18 24 30 36 42 48 54 60 66]);
xlabel('Year');
ylabel('Depth(m)');
title('断面a一月温度最大值距平');
shading interp
axis tight
求大神帮忙,小弟在此拜谢!
|
|