# HG changeset patch # User Ronald van der Meer # Date 1353502475 18000 # Node ID 25db7d506d12099bc1f211bb69528b62cbae88a7 # Parent 81db2aca1a84b8edc4609b63c31665300766214f For gnuplot use %g formatting for ticklabels. * scripts/plot/private/__go_draw_axes__.m: Switch from %s to %g format for the ticklabels. This improves the spacing between the axis label and tick labels. (discusson in report for bug # 33869) diff -r 81db2aca1a84 -r 25db7d506d12 scripts/plot/private/__go_draw_axes__.m --- a/scripts/plot/private/__go_draw_axes__.m Tue Nov 20 19:23:34 2012 -0500 +++ b/scripts/plot/private/__go_draw_axes__.m Wed Nov 21 07:54:35 2012 -0500 @@ -2148,7 +2148,7 @@ k = 1; ntics = numel (tics); nlabels = numel (labels); - fprintf (plot_stream, "set format %s \"%%s\";\n", ax); + fprintf (plot_stream, "set format %s \"%%g\";\n", ax); if (mirror) fprintf (plot_stream, "set %stics add %s %s %s mirror (", ax, tickdir, ticklength, axispos); @@ -2173,7 +2173,7 @@ else fprintf (plot_stream, "unset m%stics;\n", ax); endif - else + else error ("__go_draw_axes__: unsupported type of ticklabel"); endif else