changeset 19422:52ae096f038b

Fix gnuplot plotting of tick marks when values are very large (bug #43531). * __go_draw_axes__.m: Use %.15e format rather than %.15g format which was overflowing and causing gnuplot to complain.
author Rik <rik@octave.org>
date Sat, 06 Dec 2014 13:21:52 -0800
parents f054112912df
children aea099cd1ee7
files scripts/plot/util/private/__go_draw_axes__.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Fri Dec 05 22:17:09 2014 -0800
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Sat Dec 06 13:21:52 2014 -0800
@@ -2176,8 +2176,8 @@
     endif
     fprintf (plot_stream, "set %stics %s %s %s %s (", ax, tickdir,
              ticklength, axispos, mirror);
-    fprintf (plot_stream, " %.15g,", tics(1:end-1));
-    fprintf (plot_stream, " %.15g) %s;\n", tics(end), fontspec);
+    fprintf (plot_stream, " %.15e,", tics(1:end-1));
+    fprintf (plot_stream, " %.15e) %s;\n", tics(end), fontspec);
   else
     fprintf (plot_stream, "set %stics %s %s %s %s %s %s;\n", ax,
              tickdir, ticklength, axispos, mirror, colorspec, fontspec);