Mercurial > hg > octave-terminal
changeset 5545:c4500e72f503
[project @ 2005-11-23 03:55:08 by jwe]
author | jwe |
---|---|
date | Wed, 23 Nov 2005 03:55:21 +0000 |
parents | 2286fa5f2e5d |
children | 3ebf0e35156c |
files | scripts/ChangeLog scripts/plot/axis.m |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2005-11-22 John W. Eaton <jwe@octave.org> + + * plot/axis.m: Use %.16g instead of just %g to format ranges for + gnuplot set command. + 2005-11-15 John W. Eaton <jwe@octave.org> * general/shiftdim.m: Doc fix.
--- a/scripts/plot/axis.m +++ b/scripts/plot/axis.m @@ -247,15 +247,15 @@ __current_axis__ = reshape (ax, 1, len); if (len > 1) - __gnuplot_raw__ (sprintf ("set xrange [%g:%g];\n", ax(1), ax(2))); + __gnuplot_raw__ (sprintf ("set xrange [%.16g:%.16g];\n", ax(1), ax(2))); endif if (len > 3) - __gnuplot_raw__ (sprintf ("set yrange [%g:%g];\n", ax(3), ax(4))); + __gnuplot_raw__ (sprintf ("set yrange [%.16g:%.16g];\n", ax(3), ax(4))); endif if (len > 5) - __gnuplot_raw__ (sprintf ("set zrange [%g:%g];\n", ax(5), ax(6))); + __gnuplot_raw__ (sprintf ("set zrange [%.16g:%.16g];\n", ax(5), ax(6))); endif else