[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40259] Printing in landscape mode is clipped
From: |
sergey plotnikov |
Subject: |
[Octave-bug-tracker] [bug #40259] Printing in landscape mode is clipped |
Date: |
Tue, 08 Apr 2014 11:19:00 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36 |
Follow-up Comment #11, bug #40259 (project octave):
I've played with that in Matlab and it's not so straightforward, i'd say. In
the following example all three pdfs are landscape oriented but with a
different figure position on a paper (files are attached):
>> figure
>> plot (rand (3,3))
>> get(gcf,'papertype')
ans =
usletter
>> set(gcf,'papersize',[11 8.5])
>> get(gcf,'papertype')
ans =
<custom>
>> get(gcf,'paperorientation')
ans =
portrait
>> print('-dpdf','land1.pdf')
set(gcf,'paperorientation','landscape')
>> get(gcf,'papersize')
ans =
8.5000 11.0000
>> print('-dpdf','land2.pdf')
>> get(gcf,'paperposition')
ans =
0.2500 2.5000 8.0000 6.0000
>> orient(gcf,'landscape')
>> get(gcf,'papersize')
ans =
8.5000 11.0000
>> get(gcf,'paperposition')
ans =
0.2500 0.2500 8.0000 10.5000
>> get(gcf,'paperorientation')
ans =
landscape
>> print('-dpdf','land3.pdf')
There are actually some behavior differences comparing to Octave:
* once papersize is changed papertype should be set to <custom>
** but paperorientation should stay the same
* for a "custom" papertype -- changing paperorientation should swap papersize
components irrespective to width/height ratio
* _print ()_ should use papersize as it is for portrait oriented figures and
swap papersize components (if needed) respecting width>height for lanscape
oriented figures
But anyway, the change set you offered should be applied in case of standard
papertypes since their papersize should be always set in line with
paperorientation.
(file #31136, file #31137, file #31138)
_______________________________________________________
Additional Item Attachment:
File name: land1.pdf Size:3 KB
File name: land2.pdf Size:3 KB
File name: land3.pdf Size:3 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40259>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/