Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

collapse all

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');

load coastlines
geoshow(coastlat, coastlon, 'Color', 'black')

contourcbar

Introduced before R2006a

Was this topic helpful?