comparison 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
comparison
equal deleted inserted replaced
8074:595028fcf65d 8075:a028a5960e18
73 else 73 else
74 print_usage (); 74 print_usage ();
75 endif 75 endif
76 76
77 if (isfigure (h)) 77 if (isfigure (h))
78 if (isempty (get (h, "currentaxes")))
79 set (h, "currentaxes", __go_axes__ (h))
80 endif
78 axes_objs = findobj (h, "type", "axes"); 81 axes_objs = findobj (h, "type", "axes");
79 h = [h; axes_objs]; 82 h = [h; axes_objs];
80 endif 83 endif
81 84
82 set (h, "nextplot", hold_state); 85 set (h, "nextplot", hold_state);