comparison scripts/plot/hold.m @ 11928:553874dbba84 release-3-0-x

Fix for hold with no figures/axes.
author David Bateman <dbateman@free.fr>
date Tue, 21 Oct 2008 21:59:59 -0400
parents 965bb17961f0
children
comparison
equal deleted inserted replaced
11927:5ac4261a8f59 11928:553874dbba84
67 else 67 else
68 print_usage (); 68 print_usage ();
69 endif 69 endif
70 70
71 if (isfigure (h)) 71 if (isfigure (h))
72 if (isempty (get (h, "currentaxes")))
73 set (h, "currentaxes", __go_axes__ (h))
74 endif
72 axes_objs = findobj (h, "type", "axes"); 75 axes_objs = findobj (h, "type", "axes");
73 h = [h; axes_objs]; 76 h = [h; axes_objs];
74 endif 77 endif
75 78
76 set (h, "nextplot", hold_state); 79 set (h, "nextplot", hold_state);