comparison scripts/plot/util/newplot.m @ 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 fdd58773ac02
children 597f3ee61a48
comparison
equal deleted inserted replaced
30968:9a9374ed5270 30970:7d5cb3dd312d
153 endif 153 endif
154 endswitch 154 endswitch
155 set (cf, "nextplot", "add"); # Matlab compatibility 155 set (cf, "nextplot", "add"); # Matlab compatibility
156 156
157 do_reset = true; 157 do_reset = true;
158 deleteall = false;
159 if (isempty (ca)) 158 if (isempty (ca))
160 ca = get (cf, "currentaxes"); 159 ca = get (cf, "currentaxes");
161 if (isempty (ca)) 160 if (isempty (ca))
162 ca = axes (); 161 ca = axes ();
163 do_reset = false; 162 do_reset = false;
164 endif 163 endif
165 deleteall = true; 164 deleteall = true;
165 else
166 set (cf, "currentaxes", ca);
167 deleteall = false;
166 endif 168 endif
167 169
168 anp = get (ca, "nextplot"); 170 anp = get (ca, "nextplot");
169 switch (anp) 171 switch (anp)
170 case "add" 172 case "add"