bugGNU Octave - Bugs: bug #53670, subplot handle changes after...


bug #53670: subplot handle changes after window resizing

Submitted by:  None
Submitted on:  Mon 16 Apr 2018 06:07:08 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Tony Richardson Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  dev
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 16 Apr 2018 08:26:31 PM UTC, comment #1: 

Confirmed.  There isn't any time to fix this before the 4.4 release, but it has been a problem going pretty far back.

A more destructive way to see what is going on is

h = subplot (2,4,4)
plot (1:10);
## Resize window to be very large
h2 = subplot (2,4,4)

Not only will h != h2, but subplot has determined that there was no plot in the location so it deletes the axes object (destroying the plot (1:10)) and then creates an empty axes object.

Rik <rik5>
Project Administrator
Mon 16 Apr 2018 06:07:08 PM UTC, original submission:  

If I enter

h = subplot(2, 4, 4)

I get back a particular handle value.  If I resize the window and then enter the same command I get back a different value.  I am not sure if this is expected behavior, but it does seem to be incompatible with MATLAB (which returns equal objects).

I first encountered this is a related problem when I first did

h = subplot(2, 4, [1:3])

and then after window resizing tried to get a subplot for the same area using


subsequent plots no longer covered the 1:3 area of the
(resized) window though.  This technique works in MATLAB.  I can work around the issue by using

subplot(2, 4, [1:3])

everytime I want to plot in that area.

Tony Richardson



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-16 rik5 Item GroupMatlab Compatibility => Incorrect Result
        StatusNone => Confirmed
        Release4.2.2 => dev
        Operating SystemMicrosoft Windows => Any

    Back to the top

    Powered by Savane 3.5