changeset 20998:8281e37a5631 stable

Remove spurious tick labels occuring when setting ticks and removing tick labels. * __go_draw_axes__.m: Consistently use "%.15g" in place of "%.15e" Backport of a88142abca36 from default branch to stable to fix regression documented in bug #46765.
author Edarag <edera@gmx.fr>
date Mon, 28 Dec 2015 08:35:33 -0800
parents 6ed7bae8017b
children 85dfb551e4cd f7e416862e90
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	Wed Dec 23 00:30:11 2015 +0100
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Mon Dec 28 08:35:33 2015 -0800
@@ -2193,8 +2193,8 @@
     endif
     fprintf (plot_stream, "set %stics %s %s %s %s (", ax, tickdir,
              ticklength, axispos, mirror);
-    fprintf (plot_stream, " %.15e,", tics(1:end-1));
-    fprintf (plot_stream, " %.15e) %s;\n", tics(end), fontspec);
+    fprintf (plot_stream, " %.15g,", tics(1:end-1));
+    fprintf (plot_stream, " %.15g) %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);