Mercurial > octave
changeset 30682:fdd58773ac02 stable
newplot.m: Don't change currentaxes when provided an axes handle (bug #61945)
* newplot.m: If an axes handle is provided don't make the corresponding axes
current.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 28 Jan 2022 18:28:44 +0100 |
parents | 7e5e77ef09d7 |
children | d60a1c672683 92cda11fb171 |
files | scripts/plot/util/newplot.m |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/newplot.m Fri Jan 28 17:12:59 2022 +0900 +++ b/scripts/plot/util/newplot.m Fri Jan 28 18:28:44 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");