changeset 10912:9abc67b4bd4f

__go_draw_axes__.m: For yaxislocation == 'right' associate text position with 'second' coordinate system.
author Ben Abbott <bpabbott@mac.com>
date Thu, 26 Aug 2010 20:02:15 -0400
parents da90c16fbe84
children dd6b90f44ae5
files scripts/ChangeLog scripts/plot/__go_draw_axes__.m
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed Aug 25 12:36:23 2010 -0400
+++ b/scripts/ChangeLog	Thu Aug 26 20:02:15 2010 -0400
@@ -1,3 +1,8 @@
+2010-08-26  Ben Abbott <bpabbott@mac.com>
+
+	* plot/__go_draw_axes__.m: For yaxislocation == 'right' associate text
+	position with 'second' coordinate system.
+
 2010-08-25  Ben Abbott <bpabbott@mac.com>
 
 	* plot/__go_draw_axes__.m: Revert erroneous portion of changeset
--- a/scripts/plot/__go_draw_axes__.m	Wed Aug 25 12:36:23 2010 -0400
+++ b/scripts/plot/__go_draw_axes__.m	Thu Aug 26 20:02:15 2010 -0400
@@ -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