diff scripts/plot/axis.m @ 13131:9207cdd7ff40

plot/axis.m: Partial fix for Bug #34232.
author Ben Abbott <bpabbott@mac.com>
date Sun, 11 Sep 2011 15:05:05 -0400
parents d7f74a8bdc46
children 536c6a5ab705
line wrap: on
line diff
--- a/scripts/plot/axis.m
+++ b/scripts/plot/axis.m
@@ -319,7 +319,7 @@
   else
     data = get (kids, strcat (ax, "data"));
     scale = get (ca, strcat (ax, "scale"));
-    if (strcmp (scale, "log"))
+    if (strcmp (scale, "log") && any (data > 0))
       data(data<=0) = NaN;
     end
     if (iscell (data))