bugGNU Octave - Bugs: bug #45697, saveas always changes the figure...

 
 

bug #45697: saveas always changes the figure size of the saved image

Submitter:  None
Submitted:  Wed 05 Aug 2015 04:49:11 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Performance
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Bo Qiang Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Aug 2015 08:23:01 AM UTC, comment #1: 

Hi,

The figure properties that control the size of printed outputs is the "paperposition" and "paperpositionmode". The latter is "manual" by default and the former has default value [0.25 2.5 8 6] (in inches) which makes output figure always have 8-by-6 inches size.
If you want to change this size you may use


set (gcf, "paperposition", [1 1 6 3]) # the output fig dimensions will be 6-by-3 inches


or if you want the output figure to have the same size as on screen


set (gcf, "paperpositionmode", "auto")


I am closing the bug report as Octave behaves properly and is compatible with Matlab here.

Pantxo Diribarne <pantxo>
Group Member
Wed 05 Aug 2015 04:49:11 AM UTC, original submission:  

Hi,

I tried to use saveas to save a figure as an image. the problem is if I change the size of a figure, the saved image always fall back to the default size.

Bo

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34576:  test_saveas.m added by None (126B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-29 rik5 Open/ClosedOpen Closed
    2015-08-24 pantxo StatusNone Invalid / Not an Octave Bug
    2015-08-05 None Attached File- Added test_saveas.m, #34576

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code