add a grid on a 2D or 3D plot
xgrid xgrid(color) xgrid(color, thickness) xgrid(color, thickness, style)
an integer or a row vector
a real or a row vector
an integer or a row vector
xgrid adds a grid on a 2D or 3D plot.
d for each axis).
color is the colors id to use for the grid plotting (if color is a scalar then the same color is used for each axis).
thickness is the thickness to use for the grid plotting (if thickness is a scalar then the same thickness is used for each axis).
style is the style to use for the grid plotting (if style is a scalar then the same style is used for each axis). Available styles are the same as for line_style property (see axes_properties).
| Version | Description |
| 5.5.0 | Arguments thickness and style introduced. |