[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59076] subplot replaces previously created ax

From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #59076] subplot replaces previously created axes
Date: Wed, 9 Sep 2020 18:13:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Follow-up Comment #4, bug #59076 (project octave):

>> I wonder if it would make sense to keep the old logic and add the new logic
if the old one failed.

I think the old logic is broken since a subplot position may change, e.g. due
to the addition of a large title, and the stored position is then made

>> Also it might be clearer to add an "all" around "size (rcn) == [1 3]" in
the condition. 

Yes, I'll do that thanks for noticing.

>> But is it possible that an axes looses its appdata somehow? IIRC, e.g.
"plot" resets about everything in an axes if hold is "off". 

All the job is done by the newplot function: we retrieve the axes appdata
before clearing all listeners and children. After that the orphaned clean axes
is turned into a subplot again using "subplot (ROWS, COLS, INDEX, HAX)".  


Reply to this item at:


  Message posté via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]