# HG changeset patch # User Ben Abbott # Date 1282867335 14400 # Node ID 9abc67b4bd4fc66fe965a96553af9005b9a2f9ce # Parent da90c16fbe8471f91a4cd53e4a9e6b99e404f26b __go_draw_axes__.m: For yaxislocation == 'right' associate text position with 'second' coordinate system. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-08-26 Ben Abbott + + * plot/__go_draw_axes__.m: For yaxislocation == 'right' associate text + position with 'second' coordinate system. + 2010-08-25 Ben Abbott * plot/__go_draw_axes__.m: Revert erroneous portion of changeset 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 @@ -1203,6 +1203,9 @@ color = obj.color; if (strcmpi (units, "normalized")) units = "graph"; + elseif (strcmp (axis_obj.yaxislocation, "right") + && strcmp (units, "data")) + units = "second"; else units = ""; endif