bugGNU Octave - Bugs: bug #59571, x label not visible on first of...

 
 

bug #59571: x label not visible on first of multiple figures

Submitter:  Miloš Petrašinović <mpetrasinovic>
Submitted:  Sun 29 Nov 2020 04:03:21 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Need Info Assigned to:  None
Originator Name:  mpetrasinovic Open/Closed:  * Open
Release:  * 6.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 30 Nov 2020 12:24:39 PM UTC, comment #13: 

This is the same behavior I get.

comment #12:
The axes in the second window are shifted in y-direction. If I grab the second window with the mouse and move it around...

Miloš Petrašinović <mpetrasinovic>
Mon 30 Nov 2020 11:38:57 AM UTC, comment #12: 

I cannot see this in 6.1. on windows but in the development branch on linux. The axes in the second window are shifted in y-direction. If I grab the second window with the mouse and move it around, the content is then updated correctly:


close all;
hax = axes();
close all;
hax = axes();


If I write the bounding box values in update_camera() before and after moving the figure into a warning message, I see the following:

Plot is displaced in y-direction:
bb0: 72.800000 bb1: 33.825000 bb2: 434.00000000 bb3: 367.565000

After moving around:
bb0: 72.800000 bb1: 31.500000 bb2: 434.00000000 bb3: 342.300000

If I insert a pause time after the second "close all" statement, the problem disappears. It looks to me that this happens if a figure is drawn in a very small moment after another figure is closed by "close all".

The viewport setting in gl-render seems to be correct.

The question is what does a "close all" statement has to do with get_boundingbox()?

Hg200 <hg200>
Mon 30 Nov 2020 09:36:12 AM UTC, comment #11: 

I changed the GUI style from default (which is "windowsvista" I believe) to "Fusion" and still cannot reproduce.

Which graphics toolkit are you using?
For me:

>> graphics_toolkit
ans = qt


Markus Mützel <mmuetzel>
Group administrator
Mon 30 Nov 2020 09:20:52 AM UTC, comment #10: 

If I set in preferences option fusion for Style, I do not see x label on the figure (as you can see on the last posted screenshot, on the right is a script that is executed). I have tested on 4 machines and all of them have the same behavior.

comment #9:

> Do you mean undocking the editor?  Also in this case no luck in reproducing 🤔

Miloš Petrašinović <mpetrasinovic>
Mon 30 Nov 2020 09:12:55 AM UTC, comment #9: 

Do you mean undocking the editor?  Also in this case no luck in reproducing 🤔

Kai Torben Ohlhus <siko1056>
Group Member
Mon 30 Nov 2020 08:59:41 AM UTC, comment #8: 

Thank you for your responses.

I wrote "on first of multiple figures" based on the first script I have submitted. I have tested with this script on multiple Win10 machines and all have the same bug, I was thinking what could be different and all of them have fusion selected for Style. Currently, I think that this style is somehow the source of the problem, can you test with this style and the second script?


Miloš Petrašinović <mpetrasinovic>
Mon 30 Nov 2020 08:37:31 AM UTC, comment #7: 

Comment #6: Not reproducible.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 30 Nov 2020 08:36:52 AM UTC, comment #6: 

Also here on a Octave 6.1.0 on Windows 10 20H2 machine.  Is your (secondary?) display too small or has a fancy resolution?

I also do not understand your script.  You say "on first of multiple figures", but it stops on the second figure.  I also checked the first one, but still not reproducible.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 30 Nov 2020 08:31:30 AM UTC, comment #5: 

Displaying the figures






Kai Torben Ohlhus <siko1056>
Group Member
Mon 30 Nov 2020 08:09:33 AM UTC, comment #4: 

I cannot reproduce with the second script either.

Markus Mützel <mmuetzel>
Group administrator
Sun 29 Nov 2020 06:51:33 PM UTC, comment #3: 

Can you retest with the following code?


figure(1)
plot([0,1],[0,1])
xlabel('x'), ylabel('y')
close all, clear all, clc
figure(1)
plot([0,1],[0,1])
xlabel('x'), ylabel('y')
close all, clear all, clc

Miloš Petrašinović <mpetrasinovic>
Sun 29 Nov 2020 05:22:38 PM UTC, comment #2: 

Actually, it is not reproducible by this script every time, I have to find a better example. Thank you for checking.

comment #1:

> Works for me with Octave 6.1.0 on Windows 10 20H2.

Miloš Petrašinović <mpetrasinovic>
Sun 29 Nov 2020 05:08:51 PM UTC, comment #1: 

Works for me with Octave 6.1.0 on Windows 10 20H2.

Markus Mützel <mmuetzel>
Group administrator
Sun 29 Nov 2020 04:03:21 PM UTC, original submission:  

In the attached picture you can see results after running script multiple_figure_bug.m (also attached). As you can see, figure 1 has some kind of problem, and the x label is not visible (the wrong position of the plot inside the figure window) while the rest of the figures are as they should be. If you move the whole figure everything becomes as expected.

Miloš Petrašinović <mpetrasinovic>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #50366:  Screenshot_1.png added by mpetrasinovic (54KiB - image/png)
file #50364:  multiple_figure_bug.m added by mpetrasinovic (166B - application/octet-stream)
file #50357:  multiple_figure_bug.m added by mpetrasinovic (197B - application/octet-stream)
file #50358:  fig2.png added by mpetrasinovic (21KiB - image/png)
file #50359:  fig1.png added by mpetrasinovic (18KiB - image/png)
file #50360:  fig3.png added by mpetrasinovic (21KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hg200 (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by mpetrasinovic (Submitted the item)
  • -email is unavailable- added by mpetrasinovic
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-11-30 mpetrasinovic Attached File- Added Screenshot_1.png, #50366
    2020-11-30 siko1056 StatusNone Need Info
    2020-11-29 mpetrasinovic Attached File- Added multiple_figure_bug.m, #50364
    2020-11-29 mpetrasinovic Attached File- Added multiple_figure_bug.m, #50357
        Attached File- Added fig2.png, #50358
        Attached File- Added fig1.png, #50359
        Attached File- Added fig3.png, #50360
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code