xgrid

xgrid — add a grid on a 2D plot

Calling sequence

xgrid([style])  

Parameters

style : integer

Description

xgrid adds a grid on a 2D plot. style is the dash id or the color id to use for the grid plotting. Use xset() for the meaning of id.

Examples



x=[0:0.1:2*%pi]';
plot2d(sin(x))
xgrid(2)
 
  

See also

xset, plot2d

Author

J.Ph.C.