Pixel shifts from its actual position in Matlab geospatial plots?

1 回表示 (過去 30 日間)
shifu
shifu 2018 年 2 月 28 日
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 件)

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by