Graphics Previous page   Next Page

Changing the Offset of a Contour

The surfc and meshc functions display contours beneath a surface or a mesh plot. These functions draw the contour plot at the axes' minimum z-axis limit. To specify your own offset, you must change the ZData values of the contour lines. First, save the handles of the graphics objects created by meshc or surfc.

The first handle belongs to the mesh or surface. The remaining handles belong to the contours you want to change. To raise the contour plane, add 2 to the z coordinate of each contour line.


Previous page  The Contouring Algorithm Displaying Contours in Polar Coordinates Next page

© 1994-2005 The MathWorks, Inc.