changeset 6912:66c7da4ee7a1

[project @ 2007-09-18 15:26:08 by jwe]
author jwe
date Tue, 18 Sep 2007 15:26:08 +0000
parents 63e94c52a85a
children f779c83d6ccf
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Sep 17 22:40:07 2007 +0000
+++ b/scripts/ChangeLog	Tue Sep 18 15:26:08 2007 +0000
@@ -1,3 +1,8 @@
+2007-09-18  David Bateman  <dbateman@free.fr>
+
+	* plot/__go_draw_axes__.m (__gnuplot_write_data__): Use %e instead
+	of %g when writing data.
+
 2007-09-17  John W. Eaton  <jwe@octave.org>
 
 	* plot/__go_draw_axes__.m: Omit linestyle clause for errorbar plots.
--- a/scripts/plot/__go_draw_axes__.m	Mon Sep 17 22:40:07 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Tue Sep 18 15:26:08 2007 +0000
@@ -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