Mercurial > hg > octave-nkf
comparison scripts/plot/grid.m @ 5252:3d9afb170a39
[project @ 2005-03-28 18:40:35 by jwe]
author | jwe |
---|---|
date | Mon, 28 Mar 2005 18:40:35 +0000 |
parents | 32c569794216 |
children | 6b91c98e3db0 |
comparison
equal
deleted
inserted
replaced
5251:454e3c98300d | 5252:3d9afb170a39 |
---|---|
36 usage_msg = "grid (\"on\" | \"off\")"; | 36 usage_msg = "grid (\"on\" | \"off\")"; |
37 | 37 |
38 do_replot = false; | 38 do_replot = false; |
39 | 39 |
40 if (nargin == 0) | 40 if (nargin == 0) |
41 __gnuplot_set__ grid; | 41 __gnuplot_raw__ ("set grid;\n"); |
42 do_replot = true; | 42 do_replot = true; |
43 elseif (nargin == 1) | 43 elseif (nargin == 1) |
44 if (isstr (x)) | 44 if (isstr (x)) |
45 if (strcmp ("off", x)) | 45 if (strcmp ("off", x)) |
46 __gnuplot_set__ nogrid; | 46 __gnuplot_raw__ ("set nogrid;\n"); |
47 do_replot = true; | 47 do_replot = true; |
48 elseif (strcmp ("on", x)) | 48 elseif (strcmp ("on", x)) |
49 __gnuplot_set__ grid; | 49 __gnuplot_raw__ ("set grid"); |
50 do_replot = true; | 50 do_replot = true; |
51 else | 51 else |
52 usage (usage_msg); | 52 usage (usage_msg); |
53 endif | 53 endif |
54 else | 54 else |