changeset 18668: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 3277514f36da
children 8b566ad1f88a 3994a1c2b994
files scripts/plot/appearance/axis.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);