bugGNU Octave - Bugs: bug #48522, Printed qt plot is slightly higher...

 
 

bug #48522: Printed qt plot is slightly higher than requested with -SXSIZE,YSIZE

Submitter:  Andreas Weber <andy1978>
Submitted:  Fri 15 Jul 2016 01:05:18 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Aug 2016 12:31:12 AM UTC, comment #5: 

I pushed a patch for bug #48833 which also fixes this (http://hg.savannah.gnu.org/hgweb/octave/rev/0a2961d5893c).  Closing report.

Rik <rik5>
Group administrator
Tue 23 Aug 2016 06:47:13 PM UTC, comment #4: 

I posted a patch for bug #48833 which I think should solve the issue here can someone test? Thanks.

Pantxo Diribarne <pantxo>
Group Member
Sat 20 Aug 2016 11:09:48 AM UTC, comment #3: 

@Rik: If this discrepancy is visible then yes the workaround is to eliminate the toolbar and menubar, but I think the actual bug should be fixed. I filed what I think is a more severe manifestation of this bug: see bug #48833

Pantxo Diribarne <pantxo>
Group Member
Fri 19 Aug 2016 04:15:28 PM UTC, comment #2: 

@Pantxo: Should we be disabling the menubar and toolbar when we create plots for the documentation?  The scripts that generate plots are in <OCT_DIR>/doc/interpreter. 

Currently, we use


  hf = figure (1, "visible", "off");


to create the figure for plotting.

Rik <rik5>
Group administrator
Sun 17 Jul 2016 03:10:25 PM UTC, comment #1: 

This probably has something to do with the way Qt Figure windows objects are resized to include menubar/toolbar/statusbar. The following prints a png that has the same size using qt and fltk


figure ("menubar", "none", "toolbar", "none")
plot (1:10)
print ("out.png")


Pantxo Diribarne <pantxo>
Group Member
Fri 15 Jul 2016 01:05:18 PM UTC, original submission:  

hg id c8abb2ba4017


plot (1:10)
print ("out.png")


creates a PNG with size 1200x904 for Qt, 1200x900 for fltk toolkit.

print ("-S800x600", ...) gives 800x602 for qt, 800x600 for fltk.


Andreas Weber <andy1978>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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 pantxo (Posted a comment)
  • -email is unavailable- added by andy1978 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-24 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code