Mercurial > hg > octave-jordi
changeset 6942:fbf2e8b95a18
[project @ 2007-10-01 19:26:41 by jwe]
author | jwe |
---|---|
date | Mon, 01 Oct 2007 19:26:41 +0000 |
parents | 3d555cd5ad0f |
children | f6d78960f674 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-10-01 John W. Eaton <jwe@octave.org> + + * plot/__go_draw_axes__.m: Use %.15e instead of %.15g when setting + range values. + 2007-10-01 David Bateman <dbateman@free.fr> * linear-algebra/norm.m: Inline the isvector(x) calculation for
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -702,7 +702,7 @@ else xdir = "noreverse"; endif - fprintf (plot_stream, "set %srange [%.15g:%.15g] %s;\n", xaxisloc, xlim, xdir); + fprintf (plot_stream, "set %srange [%.15e:%.15e] %s;\n", xaxisloc, xlim, xdir); if (yautoscale && have_data) ylim = get_axis_limits (ymin, ymax, yminp, ylogscale); @@ -715,7 +715,7 @@ else ydir = "noreverse"; endif - fprintf (plot_stream, "set %srange [%.15g:%.15g] %s;\n", yaxisloc, ylim, ydir); + fprintf (plot_stream, "set %srange [%.15e:%.15e] %s;\n", yaxisloc, ylim, ydir); if (nd == 3) if (zautoscale && have_data) @@ -729,7 +729,7 @@ else zdir = "noreverse"; endif - fprintf (plot_stream, "set zrange [%.15g:%.15g] %s;\n", zlim, zdir); + fprintf (plot_stream, "set zrange [%.15e:%.15e] %s;\n", zlim, zdir); endif if (strcmpi (axis_obj.box, "on"))