Pixel shifts from its actual position in Matlab geospatial plots?
1 次查看(过去 30 天)
显示 更早的评论
I am plotting a spatial map in MATLAB, where I have LAT-LON info for corresponding fill values.
Though the grid lines follows the meridian and parallels drawn in MATLAB plot domain, the fill values are shifting from their bounding grids.
How to resolve this error?
This is what I am trying
i=1;
data_plot=reshape(data(i,:),10,9);
axesm('MapProjection','mercator',...
'MapLatLimit', [19.5,24],...
'MapLonLimit', [80,85],...
'AngleUnits', 'degrees',...
'MLineLocation',0.5,'MLabelParallel','south',...
'PLineLocation',0.5,'PLabelMeridian','west',...
'MeridianLabel','on',...
'ParallelLabel','on',...
'FontSize', 8,...
'Grid', 'on',...
'GLineWidth', 0.15,...
'Frame', 'on',...
'FLineWidth', 0.2,...
'FFaceColor', [0.9 0.9 0.9]);
geoshow(lat,lon,data_plot, 'DisplayType', 'texture'); % save object
colormap(brewermap([],'Spectral')); % Use brewermap library for colorbar
shape=shaperead(shapefile, 'UseGeoCoords', true);
geoshow(shape, 'LineWidth', 0.1, 'FaceColor','none')
set(gca,'Visible','off')
I am using MATLAB R2016a
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Map Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!