| MATLAB Function Reference | Search  Help Desk |
| grid | See Also |
Grid lines for two- and three-dimensional plots
Syntax
grid on grid off grid
Description
Thegrid function turns the current axes' grid lines on and off.
grid on
adds grid lines to the current axes.
grid off
removes grid lines from the current axes.
grid
toggles the grid visibility state.
Algorithm
grid sets the XGrid, YGrid, and ZGrid properties of the current axes.
See Also
axes, plot
The XGrid, YGrid, and ZGrid properties of axes objects.