Mercurial > hg > octave-nkf
diff scripts/plot/appearance/axis.m @ 18823:01aa90ece9a4 stable
axis.m: Fix regression setting tight limits on non-image objects.
* axis.m: Don't apply image pixel calculations to non-image objects.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 23 Apr 2014 22:40:24 -0700 |
parents | bf0d2e51c8f0 |
children | 78fac67300e8 446c46af4b42 |
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m +++ b/scripts/plot/appearance/axis.m @@ -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);