These are chat archives for jheinen/GR.jl

5th
Jul 2016
DeadbraiN
@tmptrash
Jul 05 2016 13:28

I have added two issue related to these questions:
jheinen/GR.jl#25
jheinen/GR.jl#26

Thanks and waitnig for your response :)

Josef Heinen
@jheinen
Jul 05 2016 14:34
I commented on GitHub 15 minutes ago :-)
DeadbraiN
@tmptrash
Jul 05 2016 14:35
thanks. I'm commiting a full version of example script to show you. Give me 5 min ;)
Josef Heinen
@jheinen
Jul 05 2016 14:36

I can't reproduce the problem. If I run your script and obtain the window information (using xwininfo), I get the correct result:

xwininfo

xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.

xwininfo: Window id: 0x600001 "GKS 5"

Absolute upper-left X: 4
Absolute upper-left Y: 1136
Relative upper-left X: 0
Relative upper-left Y: 22
Width: 400
Height: 300
Depth: 24
Visual: 0x22
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x21 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +4+1136 -2156+1136 -2156--18 +4--18
-geometry 400x300+4--18

So, my question is: What is the output of xdpyinfo on your display? Are the dimension for your default screen correct? That's what I see for my display:

screen #0:
dimensions: 2560x1418 pixels (677x375 millimeters)

DeadbraiN
@tmptrash
Jul 05 2016 14:38
I don't have python. Can i show you the output from GR.inqdspsize() function?
Josef Heinen
@jheinen
Jul 05 2016 14:40
xdpyinfo and xwininfo are Xlib console commands (xorg-x11-utils, or simailar Un*x package)
DeadbraiN
@tmptrash
Jul 05 2016 14:45
Can i find windows analog of this library?
Josef Heinen
@jheinen
Jul 05 2016 14:47
Are you not using X11? The Window title and the WM decoration looked like X11 (for me). What's your OS?
Windows?
DeadbraiN
@tmptrash
Jul 05 2016 14:48
It's on Windows 8.1
yes
Josef Heinen
@jheinen
Jul 05 2016 14:48
Mom - I'll check this ...
DeadbraiN
@tmptrash
Jul 05 2016 14:49
I know the size of my monitor in centimeters. It's 34.54x19.43cm. The resolution is: 1280x720px
I tried different resolutions, but result is the same...
Josef Heinen
@jheinen
Jul 05 2016 14:50
Ok - the aspect ratio of your monitor is ok (1.777 both for the pixel width and the metric size)
DeadbraiN
@tmptrash
Jul 05 2016 14:51
I've added a comment on github with a link to full code.
This is an output of println(GR.inqdspsize())-> (0.333,0.281,1024,864)
Josef Heinen
@jheinen
Jul 05 2016 14:53
Ok - it's clear now. The output from GR.inqdspsize is wrong. I'll have to check this ...
This can't work!
DeadbraiN
@tmptrash
Jul 05 2016 14:54
Great news ;) I thought i'm stupid in something :) Spent 4 days on it %)
Josef Heinen
@jheinen
Jul 05 2016 14:55
Sorry - but it seems to be a bug in the Windows driver. Give me some time to fix it ....
DeadbraiN
@tmptrash
Jul 05 2016 14:55
If you need any additional info, please let me know ;)
Josef Heinen
@jheinen
Jul 05 2016 14:55
I can reproduce the problem, so hopefully, I can fix it on my own ....
DeadbraiN
@tmptrash
Jul 05 2016 14:56
super
This message was deleted
Josef Heinen
@jheinen
Jul 05 2016 14:59
Yes - is probably the same ...
DeadbraiN
@tmptrash
Jul 05 2016 15:00
sorry, i meant this one jheinen/GR.jl#25
Josef Heinen
@jheinen
Jul 05 2016 15:00
I found the problem - but I have to rebuild a windows package for GR.
This will take some time ....
DeadbraiN
@tmptrash
Jul 05 2016 15:00
No problem
This is your library, not mine :)
Okay, thank you very much! I need to go. Will check this chat and git repo in the evening ;) Waiting for your fix :+1:
Josef Heinen
@jheinen
Jul 05 2016 15:19
@tmptrash , I (hopefully) fixed the bug. Please re-install (or rebuild) GR.jl. using GR; GR.inqdspsize() should now give the correct display sizes (in meters/pixels).
DeadbraiN
@tmptrash
Jul 05 2016 15:22
This message was deleted
I think the issue is still there. Read my comment.
DeadbraiN
@tmptrash
Jul 05 2016 18:27
By the way, if we are talking about window size. It means size of canvas + borders and the title? Or it means size of the canvas only?
I also, found that it's impossible to set window size bigger then screen resolution. Is it normal behavior?
DeadbraiN
@tmptrash
Jul 05 2016 21:50
One more question :) Is it possible to somehow change a window title in Julia?