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

 
 

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

Submitted by:  Dmitry Volosnykh <dvolosnykh>
Submitted on:  Wed 16 Nov 2016 01:20:43 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Dmitry VolosnykhOpen/Closed: Open
Release: 4.0.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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:

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

(file #38994)

Pantxo Diribarne <pantxo>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by dvolosnykh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Nov 2016 02:08:17 PM UTCpantxoStatusNeed Info=>Confirmed
    Wed 16 Nov 2016 02:42:40 PM UTCpantxoAttached File-=>Added paper_test.png, #38994
      CategoryGUI=>Plotting with OpenGL
    Wed 16 Nov 2016 02:06:58 PM UTCpantxoStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1