Mercurial > hg > octave-max
diff scripts/plot/subplot.m @ 7086:625891845df5
[project @ 2007-10-31 17:11:49 by jwe]
author | jwe |
---|---|
date | Wed, 31 Oct 2007 17:16:16 +0000 |
parents | 1f16da18d85d |
children | 22397f0fb0b2 |
line wrap: on
line diff
--- a/scripts/plot/subplot.m +++ b/scripts/plot/subplot.m @@ -118,14 +118,18 @@ found = false; for child = get (cf, "children") - ## Check if 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 get deleted with their - ## corresponding axes) + ## 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 + ## with their corresponding axes). if (! ishandle (child)) continue; endif if (strcmp (get (child, "type"), "axes")) + ## Skip legend objects. + if (strcmp (get (child, "tag"), "legend")) + continue; + endif objpos = get (child, "outerposition"); if (objpos == pos) ## If the new axes are in exactly the same position as an