[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46122] gnuplot printed figure truncated
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #46122] gnuplot printed figure truncated |
Date: |
Tue, 15 Dec 2015 13:32:30 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9 |
Update of bug #46122 (project octave):
Originator Name: => Ederag
_______________________________________________________
Follow-up Comment #5:
This is a regression. When printing GL2PS requires (by design) that the figure
be scaled such that there is 1 pixel for each point to be rendered. To avoid
toolkit specific code in __print_parse_opts__.m and in print.m, the same
convention is done for gnuplot.
As a result, this change results in an incorrect figure size. On my system, my
screen resolution is 129 pixel/in, and this change reduces the intended size
by 72/129. Thus, the standard 8x6 output is reduced to 4.4651x3.3488.
Thus, this changeset will need to be reverted.
@Ederag, I've looked over you m-file and have edited it to provide the
behavior you desire. You can simpify this task and avoid worrying about the
papersize and orientation by just specifying the paperposition and then using
the -dpdfwrite terminal.
close all
plot (rand (3))
set (gcf (), 'PaperUnits', 'centimeters');
set (gcf (), 'PaperPosition', [0, 0, 21, 12]);
print -dpdfwrite try.pdf
Both my modified m-file and the simplified commands assume this change is
reverted.
(file #35750)
_______________________________________________________
Additional Item Attachment:
File name: script_wysiwyg_modified.m Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46122>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46122] gnuplot printed figure truncated,
Ben Abbott <=