Mercurial > octave-antonio
diff scripts/plot/__go_draw_axes__.m @ 6605:376b71574728
[project @ 2007-05-02 16:15:28 by jwe]
author | jwe |
---|---|
date | Wed, 02 May 2007 16:15:28 +0000 |
parents | f569cc721d3b |
children | 9197bb0a2738 |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m Wed May 02 05:36:43 2007 +0000 +++ b/scripts/plot/__go_draw_axes__.m Wed May 02 16:15:28 2007 +0000 @@ -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");