comparison 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
comparison
equal deleted inserted replaced
6604:c2b700808e0a 6605:376b71574728
887 887
888 ## DATA is already transposed. 888 ## DATA is already transposed.
889 889
890 ## FIXME -- this may need to be converted to C++ for speed. 890 ## FIXME -- this may need to be converted to C++ for speed.
891 891
892 ## Convert NA elements to normal NaN values because fprintf writes
893 ## "NA" and that confuses gnuplot.
894 idx = find (isna (data));
895 if (any (idx))
896 data(idx) = NaN;
897 endif
898
892 if (nd == 2) 899 if (nd == 2)
893 nan_elts = find (sum (isnan (data))); 900 nan_elts = find (sum (isnan (data)));
894 fmt = strcat (repmat ("%g ", 1, rows (data)), "\n"); 901 fmt = strcat (repmat ("%g ", 1, rows (data)), "\n");
895 if (isempty (nan_elts)) 902 if (isempty (nan_elts))
896 fprintf (plot_stream, fmt, data); 903 fprintf (plot_stream, fmt, data);