Mercurial > octave
changeset 28406:d1ce55c5d70d
maint: merge stable to default
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 10:03:45 +0200 |
parents | c2c528319260 (current diff) 26d69b0a3e8d (diff) |
children | 99ffd1058bec |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Thu Jun 04 23:02:43 2020 -0400 +++ b/scripts/plot/appearance/legend.m Fri Jun 05 10:03:45 2020 +0200 @@ -1349,10 +1349,15 @@ return; endif - [li, axpos, pbam, pba] = get (hax, {"looseinset", "position", ... - "plotboxaspectratiomode", ... - "plotboxaspectratio"}){:}; - axpos = boxposition (axpos, pba); + [li, axpos, pbam, pba, dam] = get (hax, {"looseinset", "position", ... + "plotboxaspectratiomode", ... + "plotboxaspectratio", ... + "dataaspectratiomode"}){:}; + + if (strcmp (pbam, "manual") || strcmp (dam, "manual")) + axpos = boxposition (axpos, pba); + endif + lpos = [get(hl, "position")(1:2), sz]; if (! outside)