[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated |
Date: |
Sun, 25 Oct 2015 11:40:07 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
Update of bug #46292 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #2:
Hi,
Thanks for your report. Your example is a bit complicated and I think it boils
down to the script bellow:
## Use absolute units for the axes object
hax = axes ("units", "centimeters");
set (gcf, "paperpositionmode", "auto")
print foo.pdf
For OpeznGL based toolkits (I don't know much about gnuplot), the problem is
that when printing we basically have to assume "screenpixels=>points". The
library we use for printing (gl2ps) captures our OpenGL operations and
interprets pixels as points. See this discussion in which I was concerned
about text (*fixed size* as in your example):
http://www.geuz.org/pipermail/gl2ps/2015/000418.html
So when using "paperpositionmode"="auto" we want to draw a figure that has the
exact same size as on-screen: if it is X pixels wide on-screen, we have to
redraw it (this is one of the reasons for the flickering) on a canvas that is
(X/screenpixelsperinch*72) wide so that the final figure has the right size.
As people tend to often have screenpixelsperinch>72 this usually means
downsizing the figure. Unfortunately any fixed size object (text or absolute
"units" property) will end-up being magnified in the printout figure.
Are there other issues I didn't notice that your example shows and that mine
neglects?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46292>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] printed figure with multiple plots, in absolute positions, is truncated, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, Pantxo Diribarne, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, Pantxo Diribarne, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, ederag, 2015/10/25
- [Octave-bug-tracker] [bug #46292] Axes with absolute "units" have wrong dimensions in printout, ederag, 2015/10/31