# HG changeset patch # User Pantxo Diribarne # Date 1591344225 -7200 # Node ID d1ce55c5d70d537bf618c3edc9f6e0fecd13d5b1 # Parent c2c528319260df537dab7802598f075519928ff0# Parent 26d69b0a3e8d06e5fa5fc9074fde23bd7b5fdd08 maint: merge stable to default diff -r c2c528319260 -r d1ce55c5d70d scripts/plot/appearance/legend.m --- 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)