Mercurial > hg > octave-avbm
changeset 6920:17d9ce1f00f5
[project @ 2007-09-21 16:13:30 by jwe]
author | jwe |
---|---|
date | Fri, 21 Sep 2007 16:13:35 +0000 |
parents | e45e921fbee2 |
children | 2ae5d4353d0b |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-09-21 John W. Eaton <jwe@octave.org> + + * plot/__go_draw_axes__.m (do_tics_1): Use %g, not %.15g here. + 2007-09-21 Luther Tychonievich <lty@cs.byu.edu> * control/hinf/h2norm: Compute d*d', not d'*d.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1131,7 +1131,7 @@ fprintf (plot_stream, "set format %s \"%%s\";\n", ax); fprintf (plot_stream, "set %stics (", ax); for i = 1:ntics - fprintf (plot_stream, " \"%s\" %.15g", labels(k++), tics(i)) + fprintf (plot_stream, " \"%s\" %g", labels(k++), tics(i)) if (i < ntics) fputs (plot_stream, ", "); endif @@ -1144,13 +1144,13 @@ error ("unsupported type of ticklabel"); endif else - fprintf (plot_stream, "set format %s \"%%.15g\";\n", ax); + fprintf (plot_stream, "set format %s \"%%g\";\n", ax); fprintf (plot_stream, "set %stics (", ax); - fprintf (plot_stream, " %.15g,", tics(1:end-1)); - fprintf (plot_stream, " %.15g);\n", tics(end)); + fprintf (plot_stream, " %g,", tics(1:end-1)); + fprintf (plot_stream, " %g);\n", tics(end)); endif else - fprintf (plot_stream, "set format %s \"%%.15g\";\n", ax); + fprintf (plot_stream, "set format %s \"%%g\";\n", ax); fprintf (plot_stream, "set %stics;\n", ax); endif endfunction