[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and pr
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing |
Date: |
Mon, 5 Feb 2018 17:06:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #45, bug #52940 (project octave):
@Rik: I tried the following:
hf = figure ("papertype", "a0");
sz = get (hf, "papersize");
ndiv = 8;
xt = linspace (0, sz(1), ndiv)(2:end-1);
yt = linspace (0, sz(2), ndiv)(2:end-1);
pos = [xt(1) yt(1) (sz(1) - 2*xt(1)) (sz(2) - 2*yt(1))];
set (hf, "paperposition", pos)
hax = axes ("position", [1e-3 1e-3 1-3e-3 1-3e-3], "xlim", [xt(1) xt(end)],
...
"ylim", [yt(1) yt(end)], "xtick", xt, "ytick", yt,
"linewidth", 3);
grid on
box on
print toto.pdf
In this example, the corners size should be 1 x-division by 1 y-division,
which works for me (see attached figure).
I cheated a bit the axes position to workaround what looks like bug #52303
(invisible axes lines).
(file #43183)
_______________________________________________________
Additional Item Attachment:
File name: toto.pdf Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52940>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Pantxo Diribarne, 2018/02/01
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Pantxo Diribarne, 2018/02/02
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Rik, 2018/02/05
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Dan Sebald, 2018/02/05
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Dan Sebald, 2018/02/05
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Rik, 2018/02/06
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Rik, 2018/02/06
- [Octave-bug-tracker] [bug #52940] Regression with "PaperPosition" and printing, Dan Sebald, 2018/02/26