Single colorbar for multiple maps using M_Map

Hi,
I would like to generate a single colorbar for multiple maps using M_Map. This is easy to do using matlab mapping toolbox but the images are not as good as with M_Map.
Example code for single map with single colorbar:
#***********************************************************
[LONG, LAT]=meshgrid(linspace(min(long),max(long)),linspace(min(lat),max(lat)));
F = ScatteredInterpolant(long,lat,temperature);
qz = F(LONG,LAT);
%p=-0.2:0.7; % define contour intervals
% contour intervals for positive values only
m_proj('Lambert','long',[-120 -90],'lat',[49 60]);
m_pcolor(LONG,LAT,qz);shading flat;%********************************
hold on
m_grid('box','on','tickdir','in');
hcb = colorbar('horiz');
set(get(hcb,'Xlabel'),'String','Heterogeneous correlations')
#******************************************************************
Thanks.

Réponses (0)

Catégories

En savoir plus sur Color and Styling dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by