diff scripts/plot/hold.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 6333da0dfdfd
children 8e8afefe9466
line wrap: on
line diff
--- a/scripts/plot/hold.m
+++ b/scripts/plot/hold.m
@@ -75,6 +75,9 @@
   endif
 
   if (isfigure (h))
+    if (isempty (get (h, "currentaxes")))
+      set (h, "currentaxes", __go_axes__ (h))
+    endif
     axes_objs = findobj (h, "type", "axes");
     h = [h; axes_objs];
   endif