changeset 30970:7d5cb3dd312d stable

Backed out changeset fdd58773ac02 (bug #61945) Backing out changeset until a more comprehensive solution can be found which includes addressing bug #62373.
author Rik <rik@octave.org>
date Sat, 30 Apr 2022 08:19:43 -0700
parents 9a9374ed5270
children 58ca24f0d038 973be5be3327
files scripts/plot/util/newplot.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/newplot.m	Fri Apr 29 22:13:37 2022 -0700
+++ b/scripts/plot/util/newplot.m	Sat Apr 30 08:19:43 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");