changeset 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 df28b55d03c0
children beaf723a49eb
files scripts/ChangeLog scripts/plot/subplot.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Oct 16 13:43:49 2008 -0400
+++ b/scripts/ChangeLog	Thu Oct 16 16:23:14 2008 -0400
@@ -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  John W. Eaton  <jwe@octave.org>
 
 	* testfun/rundemos.m: New function.
--- a/scripts/plot/subplot.m	Thu Oct 16 13:43:49 2008 -0400
+++ b/scripts/plot/subplot.m	Thu Oct 16 16:23:14 2008 -0400
@@ -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