Mercurial > octave-nkf
comparison scripts/plot/__stem__.m @ 8075:a028a5960e18
Fix for hold with no figures/axes. Set prop/val pairs to hggroups rather than underlying objects. Fix for equality test in array_property
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 29 Aug 2008 15:48:44 -0400 |
parents | 3b53b25e2550 |
children | 082fa7859574 |
comparison
equal
deleted
inserted
replaced
8074:595028fcf65d | 8075:a028a5960e18 |
---|---|
57 yt = [zeros(1, nx); yt; NaN(1, nx)](:); | 57 yt = [zeros(1, nx); yt; NaN(1, nx)](:); |
58 endif | 58 endif |
59 | 59 |
60 hg = hggroup (); | 60 hg = hggroup (); |
61 h = [h; hg]; | 61 h = [h; hg]; |
62 __add_datasource__ (caller, hg, {"x", "y", "z"}, varargin{:}); | 62 args = __add_datasource__ (caller, hg, {"x", "y", "z"}, varargin{:}); |
63 | 63 |
64 if (i == 1) | 64 if (i == 1) |
65 set (ax, "nextplot", "add"); | 65 set (ax, "nextplot", "add"); |
66 endif | 66 endif |
67 | 67 |
140 endif | 140 endif |
141 | 141 |
142 addlistener (hg, "xdata", @update_data); | 142 addlistener (hg, "xdata", @update_data); |
143 addlistener (hg, "ydata", @update_data); | 143 addlistener (hg, "ydata", @update_data); |
144 addlistener (hg, "zdata", @update_data); | 144 addlistener (hg, "zdata", @update_data); |
145 | |
146 set (hg, args{:}); | |
147 if (i == 1 && !isempty(h_baseline)) | |
148 set (h_baseline, "parent", get (hg, "parent")); | |
149 endif | |
145 endfor | 150 endfor |
146 | 151 |
147 unwind_protect_cleanup | 152 unwind_protect_cleanup |
148 set (ax, "nextplot", hold_state); | 153 set (ax, "nextplot", hold_state); |
149 axes (oldax); | 154 axes (oldax); |