Mercurial > hg > octave-nkf
diff scripts/plot/appearance/axis.m @ 18826:78fac67300e8
maint: Periodic merge of gui-release to default.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 24 Apr 2014 08:41:30 -0700 |
parents | cf3db95a75f0 01aa90ece9a4 |
children | 7bbe3658c5ef |
line wrap: on
line diff
--- a/scripts/plot/appearance/axis.m +++ b/scripts/plot/appearance/axis.m @@ -343,7 +343,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);