Skip to Main Content Skip to Search
Product Documentation

contourfm - Project filled 2-D contour plot of map data

Description

The contourfm function is the same as the contourm function except that the areas between contours are filled with colors. For each contour interval, contourfm selects a distinct color from the figure's colormap. You can obtain the same result by setting 'Fill','on' and 'LineColor','black' when calling contourm.

Examples

Plot the Earth's geoid with filled contours. The data is in meters.

figure
axesm eckert4; framem; gridm; axis off; tightmap

load geoid
contourfm(geoid, geoidrefvec, -120:20:100, 'LineStyle', 'none');

coast = load('coast');
geoshow(coast.lat, coast.long, 'Color', 'black')

contourcbar

See Also

clabelm | contour3m | contourcbar | contourm | meshm | surfm

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS