Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How to handle 2 different colorbar in a single figure?

Asked by Léo on 28 Mar 2013

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

per isakson on 28 Mar 2013

Most people don't try to read code that isn't formatted (marked-up)!

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

per isakson on 28 Mar 2013

What are all those functions named m_...?

Léo

Tags

Products

No products are associated with this question.

1 Answer

Answer by per isakson on 28 Mar 2013
Edited by per isakson on 28 Mar 2013

0 Comments

per isakson

Contact us