Back to Data Visualization
grid
Toggle grid lines
Syntax
grid
grid('on')
grid('off')Description
Controls the visibility of grid lines on the current chart.
Parameters
| Name | Description |
|---|---|
| state(optional) | 'on' or 'off' (default: toggle) |
Returns
null
Examples
Try It
>> plot([1 2 3]);
grid('on')