MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #10666] X11 device distortion #3268

Closed MichaelChirico closed 4 years ago

MichaelChirico commented 4 years ago

From: t.zumbrunn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::> Full_Name: Thomas Zumbrunn Version: 2.6.1 OS: GNU/Linux (openSuse 10.3 2.6.22.13-0.3-default) Submission from: (NULL) (131.152.125.199)

With my particular X11 settings, the width to height ratio of the x11 device is distorted, with the width being half that of the height. This results in wrongly proportioned plots, wrongly positioned text etc.

Other devices are not affected.

I already asked about his on the mailing list (https://stat.ethz.ch/pipermail/r-help/2007-December/147891.html) but no one seemed to have an answer.


METADATA

MichaelChirico commented 4 years ago

From: Prof Brian Ripley <ripley@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>> On Thu, 31 Jan 2008, t.zumbrunn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::> wrote:

Full_Name: Thomas Zumbrunn
Version: 2.6.1
OS: GNU/Linux (openSuse 10.3 2.6.22.13-0.3-default)
Submission from: (NULL) (131.152.125.199)

With my particular X11 settings, the width to height ratio of the x11 device
is
distorted, with the width being half that of the height. This results in
wrongly
proportioned plots, wrongly positioned text etc.

So your X11 settings are wrong: R is just using what X11 tells it.

The most likely setting is DisplaySize in xorg.conf, which controls how inches are mapped to pixels.


Other devices are not affected.

I already asked about his on the mailing list
(https://stat.ethz.ch/pipermail/r-help/2007-December/147891.html) but no one
seemed to have an answer.

______________________________________________
R-devel@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

-- Brian D. Ripley, ripley@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ <CENSORING FROM DETECTED PHONE NUMBER ONWARDS; SEE BUGZILLA>


METADATA

MichaelChirico commented 4 years ago

From: Hin-Tak Leung <hin-tak.leung@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>> My first thought was that you must be using Xinerama or TwinView - and you did mention Xinerama in your r-help message but not in your bug report - this detail is important.

That said, I don't know enough about X11 to say anything - well, maybe I do, but you'll have to show your xorg.conf , and possibly the result of xdpyinfo for anybody to help you. I think your Xinerama setup is broken.

for the time being, you could probably run the X11 device through Xnest to get around this.

t.zumbrunn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::> wrote:

Full_Name: Thomas Zumbrunn
Version: 2.6.1
OS: GNU/Linux (openSuse 10.3 2.6.22.13-0.3-default)
Submission from: (NULL) (131.152.125.199)

With my particular X11 settings, the width to height ratio of the x11 device
is
distorted, with the width being half that of the height. This results in
wrongly
proportioned plots, wrongly positioned text etc.

Other devices are not affected.

I already asked about his on the mailing list
(https://stat.ethz.ch/pipermail/r-help/2007-December/147891.html) but no one
seemed to have an answer.

______________________________________________
R-devel@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

METADATA

MichaelChirico commented 4 years ago

From: Thomas Zumbrunn <t.zumbrunn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>> On Thursday 31 January 2008, Hin-Tak Leung wrote:

My first thought was that you must be using Xinerama or TwinView -
and you did mention Xinerama in your r-help message but not
in your bug report - this detail is important.

Yes, I forgot to mention this.

That said, I don't know enough about X11 to say anything - well, maybe
I do, but you'll have to show your xorg.conf , and possibly the result
of xdpyinfo for anybody to help you. I think your Xinerama setup is broken.

Yes, and as Prof. Ripley correctly guessed that the DisplaySize setting was wrong. SaX2, the X11 setup tool of openSUSE, adds up the width values of both Xinerama devices, which results in a wrong DisplaySize width value. I filed a bug at openSUSE and already got a reaction. It seems unclear whether it is correct to add up the values.

for the time being, you could probably run the X11 device through Xnest
to get around this.

Thanks for the advice. Correcting the DisplaySize value helped, and it didn't break the Xinerama setting.


METADATA

MichaelChirico commented 4 years ago

From: Marc Schwartz <marc_schwartz@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>> Just to follow up, largely in synch with the two replies already, it sounds like there is a good chance that your two displays (the physical panels or monitors) are either of two different sizes and/or have two different resolutions. Somewhat more likely is the latter.

In either case, it is likely that the dpi (dots per inch) setting that is being picked up by the X server is incorrect or biased by one display over the other. Hence, when you open the display device on the screen, the size and aspect ratio of the device is wrong.

For example, on my system, I have an internal 15 inch laptop lcd panel of 1600x1200 with a dpi of 133. I have an external 20 inch lcd panel which has the same resolution but at 100 dpi. I happen to use TwinView with an nVidia card, but have to tweak the xorg.conf settings to get the displays to look reasonably similar. I actually hard code the 100 dpi setting rather than allowing the server to get the information from the monitors. My xdpyinfo is:

$ xdpyinfo | grep dimensions dimensions: 3200x1200 pixels (813x305 millimeters)

$ xdpyinfo | grep resolution resolution: 100x100 dots per inch

Note that using TwinView, my two displays effectively show as one.

I would suggest that you post to a SUSE or generic Linux forum or perhaps to a graphics card vendor forum specific to your card for detailed guidance.

HTH,

Marc Schwartz

Hin-Tak Leung wrote:

My first thought was that you must be using Xinerama or TwinView -
and you did mention Xinerama in your r-help message but not
in your bug report - this detail is important.

That said, I don't know enough about X11 to say anything - well, maybe
I do, but you'll have to show your xorg.conf , and possibly the result
of xdpyinfo for anybody to help you. I think your Xinerama setup is broken.

for the time being, you could probably run the X11 device through Xnest
to get around this.

t.zumbrunn@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::> wrote:
> Full_Name: Thomas Zumbrunn
> Version: 2.6.1
> OS: GNU/Linux (openSuse 10.3 2.6.22.13-0.3-default)
> Submission from: (NULL) (131.152.125.199)
>
>
> With my particular X11 settings, the width to height ratio of the x11 device
> is
> distorted, with the width being half that of the height. This results in
> wrongly
> proportioned plots, wrongly positioned text etc.
>
> Other devices are not affected.
>
> I already asked about his on the mailing list
> (https://stat.ethz.ch/pipermail/r-help/2007-December/147891.html) but no one
> seemed to have an answer.

METADATA

MichaelChirico commented 4 years ago

NOTES: SuSe bug in setting up xorg.conf


METADATA

MichaelChirico commented 4 years ago

Audit (from Jitterbug): Sat Feb 2 19:34:47 2008 ripley changed notes Sat Feb 2 18:34:47 2008 ripley moved from incoming to System-specific-fixed


METADATA