Main Content

Contour Colormaps

Use colormaps to display surfaces as contour maps for data types other than terrain, such as geoid heights. First, get geoid heights and a geographic postings reference object from the EGM96 geoid model. Display the geoid heights using the default colormap.

[N,R] = egm96geoid;
worldmap(N,R)
geoshow(N,R,'DisplayType','surface')

Then, display a colorbar using the 'jet' colormap. Specify the contour interval as 10 meters.

contourcmap('jet',10,'Colorbar','on','Location','horizontal')

Display a restricted value range by specifying a vector of evenly spaced values.

range = 0:5:50;
contourcmap('jet',range,'Colorbar','on','Location','horizontal')