bugGNU Octave - Bugs: bug #54796, Consecutive plots drift out of the...

 
 

bug #54796: Consecutive plots drift out of the figure area

Submitter:  Tunc <tunc>
Submitted:  Sat 06 Oct 2018 02:24:42 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Oct 2018 09:14:25 AM UTC, comment #3: 

@Tunc: After looking again at Octave 4.2.2 I can confirm that I sometimes observe a similar effect, one of the output png files is sometimes smaller than expected (1167-by-875 instead of 1200-by-900 pixels) and the xlabel partly goes outside the canvas. To trigger the bug I have to first switch to fltk toolkit, draw a figure, switch back to Qt tookit and then run the original snippet.

Anyway, even with the above procedure I still cannot reproduce the bug with Octave 4.4.1 and dev. This is somewhat the same as what Rik observed in bug #51829. As he said this bug seams to be gone in the current Octave version (4.4.1), while it was present in previous versions including 4.2,  and I'll close this report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Sat 06 Oct 2018 12:05:35 PM UTC, comment #2: 


octave:1> get (0, "default")
ans =

  scalar structure containing the fields:



One more observation that might help: 2.png and 3.png are 1167x875px, rather than 1200x900px.

Tunc <tunc>
Sat 06 Oct 2018 08:34:12 AM UTC, comment #1: 

I cannot reproduce this bug, neither with Octave 4.2.2 nor dev. I see you are changing root default values. Do you by any event have other default settings that may provoke the bug. What does "get (0, "default")" return?

Pantxo Diribarne <pantxo>
Group Member
Sat 06 Oct 2018 02:24:42 AM UTC, original submission:  

Basically, if you plot twice on the same figure window one after another, the second plot is not positioned on the canvas properly. Content is shifted southwards, which may result in the x-label being clipped off.

A while ago, I reported this problem: https://savannah.gnu.org/bugs/?51829. The report was closed, but actually the issue is not fully fixed. There is an improvement, though: Now the shift does not keep exacerbating in the 3rd, 4th, 5th... plotting attempts. It only happens between the first and second iterations.


set(0,'defaultaxesfontsize', 25)
for i=1:1:3
        plot(1,1,'o');
        xlabel('x');
        ylabel('y');
        print(sprintf('%d.png', i));
end


Tunc <tunc>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45156:  1.png added by tunc (18KiB - image/png)
file #45157:  2.png added by tunc (17KiB - image/png)
file #45158:  3.png added by tunc (17KiB - 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 pantxo (Posted a comment)
  • -email is unavailable- added by tunc (Submitted the item)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-07 pantxo CategoryPlotting Plotting with OpenGL
        StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2018-10-06 pantxo StatusNone Works For Me
    2018-10-06 tunc Attached File- Added 1.png, #45156
        Attached File- Added 2.png, #45157
        Attached File- Added 3.png, #45158

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code