Mercurial > hg > octave-nkf
comparison scripts/plot/hold.m @ 6046:34f96dd5441b
[project @ 2006-10-10 16:10:25 by jwe]
author | jwe |
---|---|
date | Tue, 10 Oct 2006 16:10:31 +0000 |
parents | c49aec8a9080 |
children | 44c91c5dfe1d |
comparison
equal
deleted
inserted
replaced
6045:421d8a903df7 | 6046:34f96dd5441b |
---|---|
52 | 52 |
53 if (length (__hold_state__) < __current_figure__) | 53 if (length (__hold_state__) < __current_figure__) |
54 __hold_state__(__current_figure__) = false; | 54 __hold_state__(__current_figure__) = false; |
55 endif | 55 endif |
56 | 56 |
57 usage_msg = "hold (\"on\") or hold (\"off\")"; | |
58 | |
59 if (nargin == 0) | 57 if (nargin == 0) |
60 __hold_state__(__current_figure__) = ! __hold_state__(__current_figure__); | 58 __hold_state__(__current_figure__) = ! __hold_state__(__current_figure__); |
61 elseif (nargin == 1) | 59 elseif (nargin == 1) |
62 if (strcmp (arg, "on")) | 60 if (strcmp (arg, "on")) |
63 __hold_state__(__current_figure__) = true; | 61 __hold_state__(__current_figure__) = true; |
64 elseif (strcmp (arg, "off")) | 62 elseif (strcmp (arg, "off")) |
65 __hold_state__(__current_figure__) = false; | 63 __hold_state__(__current_figure__) = false; |
66 else | 64 else |
67 usage (usage_msg); | 65 print_usage (); |
68 endif | 66 endif |
69 else | 67 else |
70 usage (usage_msg); | 68 print_usage (); |
71 endif | 69 endif |
72 | 70 |
73 endfunction | 71 endfunction |