Skip to Main Content Skip to Search
Product Documentation

hidden - Remove hidden lines from mesh plot

Syntax

hidden on
hidden off
hidden

Description

Hidden line removal draws only those lines that are not obscured by other objects in a 3-D view. The hidden function only applies to surface plot objects that have a uniform FaceColor.

hidden on turns on hidden line removal for the current mesh plot so lines in the back of a mesh are hidden by those in front. This is the default behavior.

hidden off turns off hidden line removal for the current mesh plot.

hidden toggles the hidden line removal state.

Algorithms

When a surface graphics object has a uniform FaceColor matching the Color property of the axes, hidden off sets the FaceColor of the surface object to 'none'.

hidden on sets the FaceColor property of such surface objects to match the axes Color property (or to match that of the figure, if axes Color is 'none').

Examples

By default hidden lines are removed (hidden on) for mesh plots, such as this one of the peaks function.

mesh(peaks)
colormap hsv

Set hidden line removal off to show the obscured parts of the mesh.

hidden off

See Also

EdgeColor | FaceColor | mesh | shading

  


» Learn more
» Download free kit
» Get trial software

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