[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61945] newplot changes axes of current figure
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #61945] newplot changes axes of current figure |
Date: |
Sat, 30 Apr 2022 11:38:13 -0400 (EDT) |
Follow-up Comment #6, bug #61945 (project octave):
I'm attaching a test script that can eventually be used to verify this bug
report. Calling newplot with an input axes handle should not change gca().
close all;
fig1 = figure;
hax1 = axes;
printf ("hax1 = %f\n", double (hax1));
fig2 = figure;
hax2 = axes;
printf ("hax2 = %f\n", double (hax2));
printf ("gca before newplot = %f\n", double (gca));
h = newplot (hax1);
printf ("gca after newplot = %f\n", double (gca));
printf ("handle returned from newplot (should be hax1) = %f\n", double (h));
(file #53165)
_______________________________________________________
Additional Item Attachment:
File name: tst_newplot.m Size:0 KB
<https://file.savannah.gnu.org/file/tst_newplot.m?file_id=53165>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61945>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/