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

Thread Subject:
using plotm, can not see the coast line

Subject: using plotm, can not see the coast line

From: edward kabanyas

Date: 21 Jul, 2011 06:22:08

Message: 1 of 1

Hi alls !

I want to make a contour plot along with the coastline of the coverage area. I use the following code:

 lat = -19.9750 : 0.05: 70;
 lat = sort(lat','descend');
 lat=lat';
 lon = 70.0250 :0.05:160;
 
%size of gms_cal = 1800 x 1800

levels =210.0:5.0:260.0;
[ch,ch]=contourf(lon, lat, gms_cal, levels);
set(ch,'edgecolor','none');
colorbar('location','northoutside')

axesm('Frame','on', 'MapProjection','eqdcylin','MapLatLimit',[-20 70], 'MapLonLimit',[70 160], 'Grid','on', 'MeridianLabel','on','ParallelLabel','on')
coast = load('coast.mat');
plotm(coast.lat,coast.long,'k')

The result must be a contour plot with the coastline of the area. However, I can not see the coast line, only the contour plot. How to make the coastline is visible ? Or is the coastline not visible because of the background of contourf?

If you could help, it really appreciate it.

Edward

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us