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

expand all

Plot Earth's Geoid with Filled Contours

This example shows how to plot the Earth's geoid with filled contours, measure 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

Was this topic helpful?