Mercurial > hg > octave-nkf
changeset 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 | ee24b6c413f6 |
children | bfac13fcb6fe |
files | scripts/ChangeLog scripts/plot/subplot.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-16 David Bateman <dbateman@free.fr> + + * plot/subplot.m: Allow for column vector of children for figure. + 2008-10-16 Ben Abbott <bpabbott@mac.com> * plot/contourf.m: Correct order of patch object handles.
--- 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