# HG changeset patch # User Ben Abbott # Date 1288608883 14400 # Node ID 2114867f2a50ba199eb1e1e6779c7b9ebc539892 # Parent 298a75c128ad1f4acd22dc5afec5bf4422fafab3 axis.m: Exclude hggroup {x,y,z}data properties when determing tight axis limits. diff -r 298a75c128ad -r 2114867f2a50 scripts/ChangeLog --- a/scripts/ChangeLog Sun Oct 31 16:48:51 2010 +0000 +++ b/scripts/ChangeLog Mon Nov 01 06:54:43 2010 -0400 @@ -1,3 +1,8 @@ +2010-11-01 Ben Abbott + + * plot/axis.m: Exclude hggroup {x,y,z}data properties when determing + tight axis limits. + 2010-10-31 Rik * strings/base2dec.m, strings/bin2dec.m, strings/dec2base.m, diff -r 298a75c128ad -r 2114867f2a50 scripts/plot/axis.m --- a/scripts/plot/axis.m Sun Oct 31 16:48:51 2010 +0000 +++ b/scripts/plot/axis.m Mon Nov 01 06:54:43 2010 -0400 @@ -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"));