Effacer les filtres
Effacer les filtres

Pixel shifts from its actual position in Matlab geospatial plots?

1 vue (au cours des 30 derniers jours)
shifu
shifu le 28 Fév 2018
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

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by