Mercurial > hg > octave-lyh
diff 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 |
line wrap: on
line diff
--- a/scripts/plot/__stem__.m +++ b/scripts/plot/__stem__.m @@ -59,7 +59,7 @@ hg = hggroup (); h = [h; hg]; - __add_datasource__ (caller, hg, {"x", "y", "z"}, varargin{:}); + args = __add_datasource__ (caller, hg, {"x", "y", "z"}, varargin{:}); if (i == 1) set (ax, "nextplot", "add"); @@ -142,6 +142,11 @@ addlistener (hg, "xdata", @update_data); addlistener (hg, "ydata", @update_data); addlistener (hg, "zdata", @update_data); + + set (hg, args{:}); + if (i == 1 && !isempty(h_baseline)) + set (h_baseline, "parent", get (hg, "parent")); + endif endfor unwind_protect_cleanup