필터 지우기
필터 지우기

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개)

Community Treasure Hunt

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

Start Hunting!

Translated by