FUNCTION REFERENCE
grid
Show or hide grid lines.
Show or hide grid lines.
Syntax
grid onSyntax
grid offSyntax
gridSyntax
grid minorSyntax
grid(ax, ___)With no argument it toggles the major grid of the current axes. grid minor toggles the minor grid lines (dotted, at the minor ticks: four between major ticks, 2..9 x each decade on a log axis) and leaves the major grid as it is. grid on shows the major grid; grid off removes all grid lines, major and minor. The states are the axes properties XGrid, YGrid, ZGrid and XMinorGrid, YMinorGrid, ZMinorGrid.
Example
grid on % grid lines shownExample
grid on; grid minor % major and minor grid linesDifferences from MATLAB: MinorGridColor, MinorGridAlpha, MinorGridLineStyle and MinorTickValues are not supported yet; minor lines use the grid colour, dotted.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.