Mercurial > octave
changeset 28870:73f04ba59351 stable
plotyy.m: Use same units in primary and secondary axes (bug #59123).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 08 Oct 2020 18:55:16 +0200 |
parents | ed029f40be15 |
children | 82dc3b43c846 808b1a3a1003 |
files | scripts/plot/draw/plotyy.m |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/plotyy.m Thu Oct 08 16:06:58 2020 +0200 +++ b/scripts/plot/draw/plotyy.m Thu Oct 08 18:55:16 2020 +0200 @@ -154,6 +154,7 @@ set (ax(2), "ycolor", getcolor (h2)); endif + set (ax(2), "units", get (ax(1), "units")); if (strcmp (get(ax(1), "activepositionproperty"), "position")) set (ax(2), "position", get (ax(1), "position")); else