changeset 10529:7147078550fe

plotyy.m: Add listener for dataaspectratiomode.
author Ben Abbott <bpabbott@mac.com>
date Fri, 16 Apr 2010 10:08:46 -0400
parents 6a2e4e464d38
children 114376c7cba5
files scripts/ChangeLog scripts/plot/plotyy.m
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Apr 16 17:36:28 2010 +0200
+++ b/scripts/ChangeLog	Fri Apr 16 10:08:46 2010 -0400
@@ -31,6 +31,10 @@
 	* sparse/spalloc.m: Remove.
 	* sparse/module.mk: Update.
 
+2010-04-16  Ben Abbott <bpabbott@mac.com>
+
+	* /plot/plotyy.m: Add listener for dataaspectratiomode.
+
 2010-04-12  Ben Abbott <bpabbot@mac.com>
 
 	* plot/loglog.m: Minor ticks on by default for loglog plots.
--- 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