# HG changeset patch # User David Bateman # Date 1231139830 -3600 # Node ID 78eae8c8792d3293dbb4e834e1ecc53d0e52b2cc # Parent ee24b6c413f63871966e7dc9a9953befdfc7b11a Fix subplot for column vector of children in figure diff -r ee24b6c413f6 -r 78eae8c8792d scripts/ChangeLog --- a/scripts/ChangeLog Sat Dec 13 17:30:38 2008 +0100 +++ b/scripts/ChangeLog Mon Jan 05 08:17:10 2009 +0100 @@ -1,3 +1,7 @@ +2008-10-16 David Bateman + + * plot/subplot.m: Allow for column vector of children for figure. + 2008-10-16 Ben Abbott * plot/contourf.m: Correct order of patch object handles. diff -r ee24b6c413f6 -r 78eae8c8792d scripts/plot/subplot.m --- a/scripts/plot/subplot.m Sat Dec 13 17:30:38 2008 +0100 +++ b/scripts/plot/subplot.m Mon Jan 05 08:17:10 2009 +0100 @@ -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