% This is a script to demonstrate making a map

% This creates a window for the map or sets it to this window if already
% created.  you can use any number you want.  It will be the label on the
% window

figure(3)

% This clears anything that might have previously been plotted in that
% window.  If not done, you will overwrite - which could be your intention
clf

% we want to make a map so start with the latitude and longitude
% range for the map:

latrange=[-60 60];
longrange=[0 180];

% start m_map with this command

m_proj('miller','lat',latrange,'long',longrange);
 

%plot coastlines  - colors can be generated with three zero to 1 values for 
% red green and blue so [0 1 0] is green you can also use 'g' 'y' etc for
% colors


% Extract data from a high resolution data base
% warning do not use this unless you are looking at a small area.
% Otherwise it will fill your memory and choke the CPU
%[elevations,lat,lon]=mygrid_sand([latrange longrange],1);
m_coast('patch',[1 0 0],'edgecolor','k');


%plot some contours
m_elev('contour',[-10000:1000:00 ])
%m_contour(lon,lat,elevations);


%add box around the map
m_grid('box','fancy','linestyle','none');

%Note that the contours are fairly crude since the default data base has
%only quarter degree topography.  There are ways to get much higher
%resolution. That we will use later for VERY small regions - it can quickly
%use up memory and CPU cycles


