Mercurial > hg > octave-terminal
changeset 10992:88687577519f
__go_draw_axes__.m: Ensure text objects have units of "data".
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 16 Sep 2010 20:30:01 -0400 |
parents | 9d3a7ad94ee6 |
children | 061bd86a0bf3 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-09-16 Ben Abbott <bpabbott@mac.com> + + * plot/__go_draw_axes__.m: Ensure text objects have units of "data". + 2010-09-16 John Swensen <jpswensen@gmail.com> * imwrite.m: Accept more image formats.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -399,6 +399,15 @@ while (! isempty (kids)) obj = get (kids(end)); + if (isfield (obj, "units")) + units = obj.units; + unwind_protect + set (kids(end), "units", "data") + obj = get (kids(end)); + unwind_protect_cleanup + set (kids(end), "units", units) + end_unwind_protect + endif kids = kids(1:(end-1)); if (strcmpi (obj.visible, "off"))