bugGNU Octave - Bugs: bug #53840, Disappearing subplots in 4.4.0


bug #53840: Disappearing subplots in 4.4.0

Submitted by:  None
Submitted on:  Sat 05 May 2018 02:13:39 AM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Tony Richardson Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.0
Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 15 Feb 2019 06:49:11 PM UTC, comment #5: 

Yes, I can still reproduce with 4.4.1 but looks fixed to me with 5.0.91.

Mike Miller <mtmiller>
Project Administrator
Fri 15 Feb 2019 01:37:08 PM UTC, comment #4: 

I can't reproduce this bug anymore with Octave 5.0.91 release candidate. This is probably due to the improvements jwe has brought to the axes position calculation.
Can someone confirm that this bug is fixed?

Pantxo Diribarne <pantxo>
Project Member
Mon 17 Sep 2018 04:52:41 PM UTC, comment #3: 

Perhaps related:
I find that when I have 'hold on' and then resize the plot window, most subplot panels disappear.
However, if I then do 'hold off' they re-appear.

This is under linux.

Mark van Rossum <cosine>
Tue 08 May 2018 12:32:35 PM UTC, comment #2: 

IIRC in bug #49167 the position property also had ridiculously large values. I couldn't track down the exact cause of the issue. But thought that it was caused "possibly in or around axes::properties::sync_positions".
Maybe the issue here is related.

Markus Mützel <mmuetzel>
Project Member
Sat 05 May 2018 09:27:15 AM UTC, comment #1: 

Indeed with those additional information I was able to reproduce the bug which is clearly different than the one related to resize. Here the position of the axes is corrupted : 
octave:3> get (findobj (gcf, "type", "axes"), "position") 
ans = 
 [1,1] =      7.5645e+12   3.2287e+22  -1.5054e+13  -6.4573e+22  
 [2,1] =      7.5645e+12   3.2287e+22  -1.5054e+13  -6.4573e+22  ... 

As a workaround, I found that avoiding the call to high level "plot" function (by changing the properties of the original line object) avoids the issue for me. Something like
persitent h333 = [];    
tt = t(1:round(L/15))*1000;    
hh = h(1:round(L/15));    
if (isempty (h333))  
    plot(tt, hh);  
    grid on;       %xlim([0 tplotmax]);      
    xlabel('time (ms)');    
    title('Impulse Response');    
    set (h333, "xdata", tt, "ydata", hh);    
endif ... 

Pantxo Diribarne <pantxo>
Project Member
Sat 05 May 2018 02:13:39 AM UTC, original submission:  

Filing bug report as requested in Octave mailing list ...

I've got a couple of scripts that create figures with several subplots.  There are a couple of gui slider controls that, when changed, trigger redrawing of some of the subplots.  Under 4.4.0 some of the subplots disappear when redrawn.  The scripts still work fine under 4.2.2.  I have attached one of the scripts.  (I have tried to come up with a simpler script that demonstrates the problem, but have not been able to do so.  The original script reads in sampled audio from a large file, but I changed the script to use simulated input data.)

Run the script, change around some of the gui slider controls and some of the subplots will disappear.  This doesn't happen under 4.2.2.  

This is under Windows 10 with the Qt graphics toolkit.  Bug also exists under Linux.

I realize this may be too complicated an example to easily debug.  Maybe someone else is seeing similar behavior in a simpler script though?

Tony Richardson



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

Attach Files:

Attached Files
file #44097:  bugtest.m added by None (11KiB - application/octet-stream)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by cosine (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by pantxo (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-15 mtmiller StatusWorks For Me => Fixed
        Open/ClosedOpen => Closed
    2019-02-15 pantxo StatusConfirmed => Works For Me
    2018-09-22 mtmiller Dependencies- => bugs #54709 is dependent
    2018-05-05 pantxo CategoryPlotting => Plotting with OpenGL
        StatusNone => Confirmed
    2018-05-05 None Attached File- => Added bugtest.m, #44097

    Back to the top

    Powered by Savane 3.5