bugGNU Octave - Bugs: bug #52590, paperorientation is ignored,...

 
 

bug #52590: paperorientation is ignored, orient() is needed

Submitter:  Francesco Potortì <pot>
Submitted:  Tue 05 Dec 2017 04:01:50 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Dec 2017 04:45:21 PM UTC, comment #2: 

I see. I do not know why it was so, but it worked on 4.0 using gnuplot...

I suppose this report should then be closed

Thank you

Francesco Potortì <pot>
Tue 05 Dec 2017 04:36:43 PM UTC, comment #1: 

I think this is an accident that it ever worked before.  By setting the 'paperposition' property you are specifying exactly how you want the plot to appear on the page.  For an A4 page in landscape orientation with centimeter units, the papersize is


    papersize =

       29.700   21.000


The first dimensions is width and the second dimension is height.

However, you are setting the paperposition to


[1 1.5 19 27]


and the syntax is for this property is


[ left_edge, bottom_edge, width, height]


so you are requesting a portrait orientation where the width is 19 and the height is 27.  By simply reversing these I get a reasonable output.


set (gcf, "paperposition", [1 1.5 27 19])



Rik <rik5>
Group administrator
Tue 05 Dec 2017 04:01:50 PM UTC, original submission:  

This one used to work in 4.0 to print in landscape mode:


plot(1:2, 1:2);
set(gcf(), 'visible', 'off', 'papertype', 'a4', 'paperorientation', 'landscape', 'paperunits', 'centimeters', 'paperposition', [1 1.5 19 27]);
print a.pdf


Now, I need to add orient landscape before printing.

Francesco Potortì <pot>

 

(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 pot (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
    2017-12-05 rik5 Open/ClosedOpen Closed
    2017-12-05 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code