Pixel shifts from its actual position in Matlab geospatial plots?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170854/image.jpeg)
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Map Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!