diff scripts/plot/plotyy.m @ 10529:7147078550fe

plotyy.m: Add listener for dataaspectratiomode.
author Ben Abbott <bpabbott@mac.com>
date Fri, 16 Apr 2010 10:08:46 -0400
parents 2884758e265b
children 95c3e38098bf
line wrap: on
line diff
--- a/scripts/plot/plotyy.m	Fri Apr 16 17:36:28 2010 +0200
+++ b/scripts/plot/plotyy.m	Fri Apr 16 10:08:46 2010 -0400
@@ -185,6 +185,8 @@
   addlistener (ax(2), "view", {@update_position, ax(1)});
   addlistener (ax(1), "plotboxaspectratio", {@update_position, ax(2)});
   addlistener (ax(2), "plotboxaspectratio", {@update_position, ax(1)});
+  addlistener (ax(1), "plotboxaspectratiomode", {@update_position, ax(2)});
+  addlistener (ax(2), "plotboxaspectratiomode", {@update_position, ax(1)});
 
   ## Tag the plotyy axes, so we can use that information
   ## not to mirror the y axis tick marks