diff scripts/plot/__go_draw_axes__.m @ 6912:66c7da4ee7a1

[project @ 2007-09-18 15:26:08 by jwe]
author jwe
date Tue, 18 Sep 2007 15:26:08 +0000
parents b2de26e67857
children 40be41c7d098
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m
+++ b/scripts/plot/__go_draw_axes__.m
@@ -1056,7 +1056,7 @@
 
   if (nd == 2)
     nan_elts = find (sum (isnan (data)));
-    fmt = strcat (repmat ("%g ", 1, rows (data)), "\n");
+    fmt = strcat (repmat ("%e ", 1, rows (data)), "\n");
     if (isempty (nan_elts))
       fprintf (plot_stream, fmt, data);
     else
@@ -1076,11 +1076,11 @@
   else
     ## FIXME -- handle NaNs here too?
     if (parametric)
-      fprintf (plot_stream, "%g %g %g\n", data);
+      fprintf (plot_stream, "%e %e %e\n", data);
     else
       nc = columns (data);
       for j = 1:3:nc
-	fprintf (plot_stream, "%g %g %g\n", data(:,j:j+2)');
+	fprintf (plot_stream, "%e %e %e\n", data(:,j:j+2)');
 	fputs (plot_stream, "\n");
       endfor
     endif