Name

grid — Add/remove a grid on a 2D or a 3D plot

Calling Sequence

grid
grid on
grid off

Description

Add a grid on an axes. The individual x,y,z grids can be separately activated by changing the corresponding axes properties

Examples

plot(1:10,sin(1:10));
grid on
set(gca(),'XGrid','off')

See Also

axes properties

Authors

Stéphane Mottelet