[changeset] Missing ScreenSize & ScreenPixelsPerInch properties
John W. Eaton
jwe at octave.org
Wed Jan 21 22:47:36 CST 2009
On 22-Jan-2009, Shai Ayal wrote:
| On Thu, Jan 22, 2009 at 4:56 AM, John W. Eaton <jwe at octave.org> wrote:
| > On my system, X11 returns slightly different values for the X
| > and Y dimensions in millimeters, so the computed pixels per inch in
| > each direction is different. I average the two to come up with a
| > single value (94.514 on my system). But I'm not sure that this is the
| > correct thing. Comments?
|
| I thought this was a backend related task not really belonging in
| "core" octave. However I understand gnuplot does not give this info.
|
| the fltk backend (quite stagnant at the moment) updates screensize
| only since fltk only reports the width and height of the screen in
| pixels, not in any other units, so I suppose we will have to use code
| like you propose in it as well.
Things like
octave:1> get (0, 'screensize')
ans =
1 1 1600 1200
octave:2> set (0, 'units', 'inches')
octave:3> get (0, 'screensize')
ans =
0.00000 0.00000 16.92877 12.69658
will work without creating a figure. So it might as well be something
that is part of the core.
jwe
More information about the Octave-maintainers
mailing list