Mercurial > hg > octave-avbm
changeset 6605:376b71574728
[project @ 2007-05-02 16:15:28 by jwe]
author | jwe |
---|---|
date | Wed, 02 May 2007 16:15:28 +0000 |
parents | c2b700808e0a |
children | 2c19eaa2c6f7 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-05-02 John W. Eaton <jwe@octave.org> + + * plot/__go_draw_axes__.m: Convert NA to NaN before writing. + 2007-05-02 G. D. McBain <geordie.mcbain@aeromech.usyd.edu.au> * contour.m: Rewrite help string.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -889,6 +889,13 @@ ## FIXME -- this may need to be converted to C++ for speed. + ## Convert NA elements to normal NaN values because fprintf writes + ## "NA" and that confuses gnuplot. + idx = find (isna (data)); + if (any (idx)) + data(idx) = NaN; + endif + if (nd == 2) nan_elts = find (sum (isnan (data))); fmt = strcat (repmat ("%g ", 1, rows (data)), "\n");