Mercurial > hg > octave-lyh
changeset 11174:2114867f2a50
axis.m: Exclude hggroup {x,y,z}data properties when determing tight axis limits.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 01 Nov 2010 06:54:43 -0400 |
parents | 298a75c128ad |
children | c0a95a5c6d25 |
files | scripts/ChangeLog scripts/plot/axis.m |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-11-01 Ben Abbott <bpabbott@mac.com> + + * plot/axis.m: Exclude hggroup {x,y,z}data properties when determing + tight axis limits. + 2010-10-31 Rik <octave@nomad.inbox5.com> * strings/base2dec.m, strings/bin2dec.m, strings/dec2base.m,
--- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -308,6 +308,10 @@ ## Get the limits for axis ("tight"). ## AX should be one of "x", "y", or "z". kids = findobj (ca, "-property", strcat (ax, "data")); + ## Since contours set the cdata for the patches to the hggroup zdata property, exclude + ## hgroups when determining the tight limits. + hg_kids = findobj (ca, "-property", strcat (ax, "data"), "type", "hggroup"); + kids = setdiff (kids, hg_kids); if (isempty (kids)) ## Return the current limits. lims = get (ca, strcat (ax, "lim"));