Skip to content
Snippets Groups Projects
Commit 240ec758 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

shift half a grid point for climatology on map when using m_pcolor

parent 4b4be706
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ v1.48.5rc4 (2018-09-12)
+ add print preview and print menu command on map
+ add hypertext link in Command Window to download climatology file when is missing
+ add print/saveas menu on map with jpeg, png and epsc format
+ shift half a grid point for climatology on map when using m_pcolor
v1.48.5rc2 (2018-09-06)
+ regression on labview read file: the use of lat_dec and lon_dec by default
......
......@@ -129,7 +129,11 @@ if ~isempty( ind )
% plot 2D climatogogy on map
if strcmp(tsg.preference.map_climatology, 'on')
m_pcolor(lon, lat, climato(indLat, indLon));
% We shift half a grid point
dx = mean(diff(lon));
dy = mean(diff(lat));
m_pcolor(lon-dx/2,lat-dy/2, climato(indLat, indLon))
%m_pcolor(lon, lat, climato(indLat, indLon));
shading flat;
%colormap(m_colmap('jet','step',10));
colorbar;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment