Mercurial > octave-antonio
changeset 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 | e3e8ca96f923 |
files | scripts/plot/axis.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/axis.m Sun Sep 11 14:04:43 2011 -0500 +++ b/scripts/plot/axis.m Sun Sep 11 15:05:05 2011 -0400 @@ -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))