Mercurial > hg > octave-terminal
changeset 12677:bedd0cdb3584 stable
Fix integer overflow when using text() with large x,y values (bug #33059)
* __go_draw_axes__.m: Use "%e" printf format to guarantee exponential
printout of numbers and allow large values to pass to gnuplot.
author | David Finkel david.finkel@gmail.com |
---|---|
date | Sun, 15 May 2011 15:27:22 -0700 |
parents | 2e9cf640379b |
children | f38cf6224452 |
files | scripts/plot/__go_draw_axes__.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1271,13 +1271,13 @@ if (nd == 3) ## This produces the desired vertical alignment in 3D. fprintf (plot_stream, - "set label \"%s\" at %s %.15g,%.15g,%.15g %s rotate by %f offset character %f,%f %s %s front %s;\n", + "set label \"%s\" at %s %.15e,%.15e,%.15e %s rotate by %f offset character %f,%f %s %s front %s;\n", undo_string_escapes (label), units, lpos(1), lpos(2), lpos(3), halign, angle, dx_and_dy, fontspec, __do_enhanced_option__ (enhanced, obj), colorspec); else fprintf (plot_stream, - "set label \"%s\" at %s %.15g,%.15g %s rotate by %f offset character %f,%f %s %s front %s;\n", + "set label \"%s\" at %s %.15e,%.15e %s rotate by %f offset character %f,%f %s %s front %s;\n", undo_string_escapes (label), units, lpos(1), lpos(2), halign, angle, dx_and_dy, fontspec, __do_enhanced_option__ (enhanced, obj), colorspec);