# HG changeset patch # User Rik # Date 1651332013 25200 # Node ID 58ca24f0d038b7a8deebb2e94582fc4d11e7bfef # Parent 29573bab8328d45d8f7c270e7e41fbf020ed75ca# Parent 7d5cb3dd312dc2209aa5b363ee4b2a1855f98ad8 maint: merge stable to default diff -r 29573bab8328 -r 58ca24f0d038 scripts/plot/util/newplot.m --- a/scripts/plot/util/newplot.m Fri Apr 29 22:27:28 2022 -0700 +++ b/scripts/plot/util/newplot.m Sat Apr 30 08:20:13 2022 -0700 @@ -155,7 +155,6 @@ set (cf, "nextplot", "add"); # Matlab compatibility do_reset = true; - deleteall = false; if (isempty (ca)) ca = get (cf, "currentaxes"); if (isempty (ca)) @@ -163,6 +162,9 @@ do_reset = false; endif deleteall = true; + else + set (cf, "currentaxes", ca); + deleteall = false; endif anp = get (ca, "nextplot");