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.

Antworten (0)

Kategorien

Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 13 Aug. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by