comparison scripts/plot/subplot.m @ 11898:78eae8c8792d release-3-0-x

Fix subplot for column vector of children in figure
author David Bateman <dbateman@free.fr>
date Mon, 05 Jan 2009 08:17:10 +0100
parents 22397f0fb0b2
children
comparison
equal deleted inserted replaced
11897:ee24b6c413f6 11898:78eae8c8792d
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))