# HG changeset patch # User Rik # Date 1398318024 25200 # Node ID 01aa90ece9a4f15d861c53307bbb2c9e8161400e # Parent 3277514f36da6e8bf4b3e943a7987ffc4b9bf7df axis.m: Fix regression setting tight limits on non-image objects. * axis.m: Don't apply image pixel calculations to non-image objects. diff -r 3277514f36da -r 01aa90ece9a4 scripts/plot/appearance/axis.m --- a/scripts/plot/appearance/axis.m Fri Apr 18 10:05:08 2014 -0700 +++ b/scripts/plot/appearance/axis.m Wed Apr 23 22:40:24 2014 -0700 @@ -341,7 +341,7 @@ ## Extend image data one pixel idx = strcmp (types, "image"); - if (! isempty (idx) && (ax == "x" || ax == "y")) + if (any (idx) && (ax == "x" || ax == "y")) imdata = data(idx); px = arrayfun (@__image_pixel_size__, kids(idx), "uniformoutput", false); ipx = ifelse (ax == "x", 1, 2);