octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot orientation feature; plot filling page


From: Jaroslav Hajek
Subject: Re: plot orientation feature; plot filling page
Date: Tue, 12 Jan 2010 14:09:51 +0100

On Thu, Nov 19, 2009 at 2:22 AM, Ben Abbott <address@hidden> wrote:
>
> On Nov 18, 2009, at 7:52 AM, Ben Abbott wrote:
>
>> On Nov 18, 2009, at 12:37 AM, octaveUser wrote:
>>
>>> I'm trying to do something simple, print a file to a certain paper size and
>>> have the plot fill the whole page. In matlab this is done in the following
>>> way: >orient tall, will fill a portrait page, >orient ladscape will flip the
>>> plot 90degrees and fill the page.  Octave prints with the plot only filling
>>> a box in the center of the page with large margins at the top and bottom.
>>> The plotting to pdf finally works great, it just seems like it would be
>>> really usefull to have the plot fill the page. I understand I have to
>>> interact with gnuplot to get this done. This is the number one feature
>>> request I have, a simple way to make a plot fill a page, and rotate the plot
>>> and have it fit the page. Was there an easy way to do this I missed. Thanks,
>>> octave is wonderful.
>>
>> Currently Octave's orient() function does not recognize the "tall" option, 
>> and the "landscape", "portrait" options do not flip the "papersize" (1x2) 
>> vector. So there are both a missing feature and a bug.
>>
>> To do what you want,
>>
>> # equivalent to "orient tall"
>> papersize = get (gcf, "papersize"); # presently the paper units must be 
>> inches
>> border = 0.25;
>> set (gcf, "paperposition", [border, border, (papersize - 2*border)])
>>
>> # To change orientation
>> orientation = get (gcf, "paperorientation");
>> papersize = get (gcf, "papersize");
>> paperposition = get (gcf, "paperposition");
>> set (gcf, "paperposition", paperposition([2, 1, 4, 3]);
>> set (gcf, "papersize", papersize ([2, 1]);
>> set (gcf, "paperorientation", setdiff ({"landscape", "portrait"}, 
>> orientation);
>>
>> I'll prepare a changeset today.
>>
>> Ben
>
> Moving to the maintainers list.
>
> I've pushed the attached changeset.
>
> Jaroslav, this should also go into 3.2.x.
>
> Ben
>

Transplanted. If possibly, try referring to the patch numbers in the
main tree unless the patch for 3.2.x differs.

thanks
-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]