作者eve2508 ()
看板MATLAB
标题[绘图] 过经度0度的等值线图会乱跳问题
时间Fri May 24 22:48:03 2013
又来请教各位大大
我在画极座标投影,北纬20-90度,大西洋区域上之变数等值线图
我发现当等值线跨过经度0度时就会产生乱跳情况
查了蛮久,一直想不透为什麽会这样,想请问有办法解决吗?
谢谢!!
以下是我的程式码
proj : 画等值线资料矩阵(29x73) (由e reshape来)
yy : 纬度矩阵 ([90:-2.5:20])
xx : 经度矩阵 ([240:2.5:60])
注:我是用360度来对应全球经度网格,
所以240度代表西经120度,一路以2.5度向东到东经60度(共180度)
h=axesm ('stereo','Grid', 'off','MapLatLimit',[ys 90],'Origin',[90 120
0],'Frame','on','FLineWidth',2,...
'MeridianLabel','off','MLabelParallel','south','LabelRotation','off');
axis off
load coast
plotm(lat, long,'k-','color',[0.4,0.4,0.4],'LineWidth',1)
contourm(yy,xx,proj,floor(min(e(k,:))):-1,'k--','LineWidth',2,'ShowText','off');
hold on
contourm(yy,xx,proj,1:ceil(max(e(k,:))),'k-','LineWidth',2,'ShowText','off');
以下是出问题的图 (虚线部分为负值等值线,实线部分为正值等值线)
https://docs.google.com/file/d/0BxUY6-ywKIvpQWsyWjQxNXhBYWM/edit?usp=sharing
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.36.196