# HG changeset patch # User Ben Abbott # Date 1271426926 14400 # Node ID 7147078550fed832f4e4fc18fb1f02061fce202d # Parent 6a2e4e464d38e4f24b620dc1d9aa9183d0e0e399 plotyy.m: Add listener for dataaspectratiomode. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -31,6 +31,10 @@ * sparse/spalloc.m: Remove. * sparse/module.mk: Update. +2010-04-16 Ben Abbott + + * /plot/plotyy.m: Add listener for dataaspectratiomode. + 2010-04-12 Ben Abbott * plot/loglog.m: Minor ticks on by default for loglog plots. diff --git a/scripts/plot/plotyy.m b/scripts/plot/plotyy.m --- a/scripts/plot/plotyy.m +++ b/scripts/plot/plotyy.m @@ -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