bugGNU Octave - Bugs: bug #49622, Save to file does not respect...

 
 

bug #49622: Save to file does not respect window size

Submitter:  Dmitry Volosnykh <dvolosnykh>
Submitted:  Wed 16 Nov 2016 01:20:43 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Dmitry Volosnykh Open/Closed:  * Closed
Release:  * 4.0.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Feb 2018 08:36:26 PM UTC, comment #5: 

I can't reproduce this bug anymore after this cset:

http://hg.savannah.gnu.org/hgweb/octave/rev/8b935067a257

Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Mon 21 Nov 2016 02:08:17 PM UTC, comment #4: 

Ok, now I can reproduce this behavior with Qt only (try "graphics_toolkit ('fltk')" as a workaround). I can't find the original bug report right now but it is a known issue that sometimes Qt figures are not redrawn when they should.

Pantxo Diribarne <pantxo>
Group Member
Mon 21 Nov 2016 12:53:59 PM UTC, comment #3: 

Your snippet provides image with no unoccupied areas for me too. But once I remove last 2 lines and maximize window manually and save to .png file via menu it still works as described in original post to this issue.

PS. I am using version 4.0.2 which was installed from official PPA.

Dmitry Volosnykh <dvolosnykh>
Wed 16 Nov 2016 02:42:40 PM UTC, comment #2: 

@Dmitry: You need to use the bug tracker interface when you reply so that your answers appears.

Quoting your answer and attaching the figure you provided:

>> Thanks, now it repsects aspect ration. Despite this improvement printing still produces unoccupied areas. See attachement.


I tested the following in the just released Octave 4.2 and I see no unoccupied space:


hf = figure ();
plot (1:10)
set (hf, "paperpositionmode", "auto")
set (hf, "position", [0 0 1000 400])
print /tmp/test2.png


Does this work for you? If so can you provide a script that shows the bug?


Pantxo Diribarne <pantxo>
Group Member
Wed 16 Nov 2016 02:06:58 PM UTC, comment #1: 

Hi,

Can you give more details? From your report, I guess you are talking about a figure window? If I am right then it is expected that prinout figure doesn't depend on its onscreen size by default. To change this behavior you first need to change the paperpositionmode property of the figure: run "set (gcf, 'paperpositionmode', 'auto')" in the command window prior to printing.


Pantxo Diribarne <pantxo>
Group Member
Wed 16 Nov 2016 01:20:43 PM UTC, original submission:  

Whatever size window has (as well as in maximized state) Save to file feature provides the same result as for default sized window.

Dmitry Volosnykh <dvolosnykh>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38994:  paper_test.png added by pantxo (122KiB - 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 dvolosnykh (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-05 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-11-21 pantxo StatusNeed Info Confirmed
    2016-11-16 pantxo Attached File- Added paper_test.png, #38994
        CategoryGUI Plotting with OpenGL
    2016-11-16 pantxo StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code