Mercurial > hg > octave-lyh
comparison scripts/plot/grid.m @ 2311:2b5788792cad
[project @ 1996-07-11 20:18:38 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 20:18:38 +0000 |
parents | 5cffc4b8de57 |
children | 5ca126254d15 |
comparison
equal
deleted
inserted
replaced
2310:e2a8f216373d | 2311:2b5788792cad |
---|---|
15 ### You should have received a copy of the GNU General Public License | 15 ### You should have received a copy of the GNU General Public License |
16 ### along with Octave; see the file COPYING. If not, write to the Free | 16 ### along with Octave; see the file COPYING. If not, write to the Free |
17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
18 ### 02111-1307, USA. | 18 ### 02111-1307, USA. |
19 | 19 |
20 ## usage: grid ("on" | "off") | |
21 ## | |
22 ## Turn grid lines on or off for plotting. | |
23 ## | |
24 ## If the argument is omitted, "on" is assumed. | |
25 ## | |
26 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, | |
27 ## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title | |
28 | |
20 function grid (x) | 29 function grid (x) |
21 | |
22 ## usage: grid ("on" | "off") | |
23 ## | |
24 ## Turn grid lines on or off for plotting. | |
25 ## | |
26 ## If the argument is omitted, "on" is assumed. | |
27 ## | |
28 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, | |
29 ## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title | |
30 | 30 |
31 if (nargin == 0) | 31 if (nargin == 0) |
32 set grid; | 32 set grid; |
33 elseif (nargin == 1) | 33 elseif (nargin == 1) |
34 if (isstr (x)) | 34 if (isstr (x)) |