# HG changeset patch # User jwe # Date 1182790492 0 # Node ID ee2ad7b5454a39b008be87b636b9eaa80fb3d91f # Parent c0370a971fef426a7e2f7b5123f1ab458859701a [project @ 2007-06-25 16:54:52 by jwe] diff -r c0370a971fef -r ee2ad7b5454a scripts/ChangeLog --- a/scripts/ChangeLog Mon Jun 25 15:12:07 2007 +0000 +++ b/scripts/ChangeLog Mon Jun 25 16:54:52 2007 +0000 @@ -1,3 +1,7 @@ +2007-06-25 Pete Gustafson + + * plot/__go_draw_axes__.m: Handle units for text objects. + 2007-06-25 John W. Eaton * plot/__go_draw_axes__.m: Handle char arrays for tic labels. diff -r c0370a971fef -r ee2ad7b5454a scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Mon Jun 25 15:12:07 2007 +0000 +++ b/scripts/plot/__go_draw_axes__.m Mon Jun 25 16:54:52 2007 +0000 @@ -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