# HG changeset patch # User jwe # Date 1132718121 0 # Node ID c4500e72f50327a8d2957dcfcd3811927f3e9b6a # Parent 2286fa5f2e5dda7ed8661f7e9a3073e7dc7abe81 [project @ 2005-11-23 03:55:08 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2005-11-22 John W. Eaton + + * plot/axis.m: Use %.16g instead of just %g to format ranges for + gnuplot set command. + 2005-11-15 John W. Eaton * general/shiftdim.m: Doc fix. diff --git a/scripts/plot/axis.m b/scripts/plot/axis.m --- 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