MATLAB: Are colors in the MATLAB map not displayed correctly when using the WORLDMAP function

colormapmappingMapping Toolboxrasterworldmap

I have the following code that I run in Mapping Toolbox 1.2 (R12.1):
mmx = [0.1000 0.1500 0.2000 0.2500 0.3000 0.3500;...
0.4000 0.4500 0.5000 0.5500 0.6000 0.6500;...
0.7000 0.7500 0.8000 0.8500 0.9000 0.9500];
refvec = [1/60 90 -180];
worldmap(mmx, refvec)
When the following code is executed, the color raster does not completely cover the map beneath it. There is a small white stripe on the right edge.

Best Answer

This is a bug with the Mapping Toolbox. This error occurs when the western-most longitude value in the maplegend is negative.
To work around this problem, use East-West longitudes in the range 0 to 360 instead of in the range -180 to 180.