comparison scripts/plot/subplot.m @ 8232:c6e9ff62c64a

Fix subplot for column vector of children in figure
author David Bateman <dbateman@free.fr>
date Thu, 16 Oct 2008 16:23:14 -0400
parents f6ca8ff51818
children 0e3a92a8683c
comparison
equal deleted inserted replaced
8231:df28b55d03c0 8232:c6e9ff62c64a
115 cf = gcf (); 115 cf = gcf ();
116 116
117 set (cf, "nextplot", "add"); 117 set (cf, "nextplot", "add");
118 118
119 found = false; 119 found = false;
120 for child = get (cf, "children") 120 kids = get (cf, "children");
121 for child = reshape (kids, 1, numel (kids))
121 ## Check whether this child is still valid; this might not be the 122 ## Check whether this child is still valid; this might not be the
122 ## case anymore due to the deletion of previous children (due to 123 ## case anymore due to the deletion of previous children (due to
123 ## "deletefcn" callback or for legends/colorbars that are deleted 124 ## "deletefcn" callback or for legends/colorbars that are deleted
124 ## with their corresponding axes). 125 ## with their corresponding axes).
125 if (! ishandle (child)) 126 if (! ishandle (child))