Mercurial > hg > octave-lojdl
changeset 6752:ee2ad7b5454a
[project @ 2007-06-25 16:54:52 by jwe]
author | jwe |
---|---|
date | Mon, 25 Jun 2007 16:54:52 +0000 |
parents | c0370a971fef |
children | a5c64dad5b93 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-06-25 Pete Gustafson <petegus@umich.edu> + + * plot/__go_draw_axes__.m: Handle units for text objects. + 2007-06-25 John W. Eaton <jwe@octave.org> * plot/__go_draw_axes__.m: Handle char arrays for tic labels.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -488,15 +488,22 @@ label = obj.string; halign = obj.horizontalalignment; angle = obj.rotation; + units = obj.units; + if (strcmp (units, "normalized")) + units = "graph"; + else + units = ""; + endif + if (nd == 3) fprintf (plot_stream, - "set label \"%s\" at %g,%g,%g %s rotate by %f;\n", - undo_string_escapes (label), + "set label \"%s\" at %s %g,%g,%g %s rotate by %f;\n", + undo_string_escapes (label), units, lpos(1), lpos(2), lpos(3), halign, angle); else fprintf (plot_stream, - "set label \"%s\" at %g,%g %s rotate by %f;\n", - undo_string_escapes (label), + "set label \"%s\" at %s %g,%g %s rotate by %f;\n", + undo_string_escapes (label), units, lpos(1), lpos(2), halign, angle); endif