# HG changeset patch # User David Bateman # Date 1224188594 14400 # Node ID c6e9ff62c64adce6b8af7779f10a9ff6caaf334c # Parent df28b55d03c0cc779098a6abfc36884e78353e3f Fix subplot for column vector of children in figure diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-16 David Bateman + + * plot/subplot.m: Allow for column vector of children for figure. + 2008-10-16 John W. Eaton * testfun/rundemos.m: New function. diff --git a/scripts/plot/subplot.m b/scripts/plot/subplot.m --- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -117,7 +117,8 @@ set (cf, "nextplot", "add"); found = false; - for child = get (cf, "children") + kids = get (cf, "children"); + for child = reshape (kids, 1, numel (kids)) ## Check whether this child is still valid; this might not be the ## case anymore due to the deletion of previous children (due to ## "deletefcn" callback or for legends/colorbars that are deleted