After using "shading interp", the image will cover my satellite basemap. How to solve it?

3 views (last 30 days)
Dear all,After using "shading interp", the image will cover my satellite basemap. How to solve it?
This is my code:
basemap:
% 从WMS服务器获取影像数据
[A,R] = wmsread(orthoLayer,'Latlim',latlim, ...
'Lonlim',lonlim, ...
'ImageHeight',imageLength, ...
'ImageWidth',imageLength);
% 创建平面底图
figure;
axesm('pcarree', ... % 使用平面底图投影
'MapLatlimit', latlim, ...
'MapLonlimit', lonlim, ...
'Geoid', wgs84Ellipsoid, ... % 使用WGS84椭球体
'ParallelLabel','on','MeridianLabel','on','Frame','on', ...
MLabelLocation=2,PLabelLocation=2) % 显示网格线和刻度
% 显示影像数据
geoshow(A,R)
axis off
image:
% 绘制图像数据
t=pcolorm(double(Latitude), double(Longitude), Precip_ZN);
shading interp;
caxis([15, 55]); % 设置颜色范围
colormap(mycolor1);
colorbar;
When I delete the "shading interp",the output is
When I save the "shading interp",the output is
How to solve it?
Help me.

Accepted Answer

Voss
Voss on 11 Apr 2024
Try applying the shading only to the pcolorm surface object:
t=pcolorm(double(Latitude), double(Longitude), Precip_ZN, 'FaceColor', 'interp');
% shading interp;

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!