How to handle 2 different colorbar in a single figure?

4 views (last 30 days)
Hi, Sorry, I am a biginner. I would like to superimposed a scatter plot on a bathymetric map. My problem is that my colorbar shows the different bathymetric levels and not the colors of my vector "day" of the scatter plot. Any ideas? thanks
figure m_proj('mercator', 'longitudes',[-70 0], 'latitudes' ,[48 70]); m_gshhs_l('patch',[0.7 0.7 0.7],'edgecolor','k'); m_grid; m_tbase('contour',[-3500:1000:-500],'Edgecolor',[.5 .5 .5]); hold on m_scatter(LONGITUDE,LATITUDE,20,day,'filled'); colorbar
  3 Comments
Léo
Léo on 28 Mar 2013
if true
figure
m_proj('mercator', 'longitudes',[-70 0], 'latitudes' ,[48 70]);
m_gshhs_l('patch',[0.7 0.7 0.7],'edgecolor','k'); m_grid;
m_tbase('contour',[-3500:1000:-500],'Edgecolor',[.5 .5 .5]);
hold on m_scatter(LONGITUDE,LATITUDE,20,day,'filled');
colorbar
end

Sign in to comment.

Answers (1)

per isakson
per isakson on 28 Mar 2013
Edited: per isakson on 28 Mar 2013

Categories

Find more on Colormaps in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!