Mercurial > hg > octave-avbm
changeset 15617:25db7d506d12
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)
author | Ronald van der Meer <revdmeer@gmail.com> |
---|---|
date | Wed, 21 Nov 2012 07:54:35 -0500 |
parents | 81db2aca1a84 |
children | 9aa8dcf1e93d |
files | scripts/plot/private/__go_draw_axes__.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -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