changeset 30683:d60a1c672683

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 28 Jan 2022 18:51:50 +0100
parents 8273e03f80c9 (current diff) fdd58773ac02 (diff)
children c6c9602a1414
files
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/newplot.m	Fri Jan 28 17:54:06 2022 +0900
+++ b/scripts/plot/util/newplot.m	Fri Jan 28 18:51:50 2022 +0100
@@ -155,6 +155,7 @@
   set (cf, "nextplot", "add");  # Matlab compatibility
 
   do_reset = true;
+  deleteall = false;
   if (isempty (ca))
     ca = get (cf, "currentaxes");
     if (isempty (ca))
@@ -162,9 +163,6 @@
       do_reset = false;
     endif
     deleteall = true;
-  else
-    set (cf, "currentaxes", ca);
-    deleteall = false;
   endif
 
   anp = get (ca, "nextplot");