# HG changeset patch # User Ben Abbott # Date 1284683401 14400 # Node ID 88687577519f3a15e7c7875bd90f3ecf2b25746d # Parent 9d3a7ad94ee6639fdc29186ac4d94d4a62723754 __go_draw_axes__.m: Ensure text objects have units of "data". diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-09-16 Ben Abbott + + * plot/__go_draw_axes__.m: Ensure text objects have units of "data". + 2010-09-16 John Swensen * imwrite.m: Accept more image formats. diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- 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"))