[Top][All Lists]

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

[Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored

From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing
Date: Sat, 20 Oct 2012 16:08:51 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14

Follow-up Comment #8, bug #37554 (project octave):

I just occurred to me that ML is likely using listeners to handle this.  So I
did a test to confirm.

>> close all
>> plot (rand (3))
>> get (gcf, 'paperposition')

ans =

    0.2500    2.5000    8.0000    6.0000

>> set (gcf, 'paperpositionmode', 'auto')
>> get (gcf, 'paperposition')

ans =

    1.1333    3.1667    6.2222    4.6667

>> set (gcf, 'paperpositionmode', 'manual')
>> get (gcf, 'paperposition')

ans =

    1.1333    3.1667    6.2222    4.6667

This means my proposed patches are the wrong approach.  Instead graphics.cc
and graphics.h.in will need to be modified to properly handle the
paperpositionmode and related properties.

Specifically we need the following updaters.

(1) If "position", "paperorientation", or "papersize" are modified and
"paperpositionmode" == "auto" update "paperposition" so that the image is
centered on the page.
(2) If "paperposition" is modified set "paperpositionmode" to "manual".

Anything else?

If those updaters are added, I think the current implementation for print.m
will function correctly.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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