Re: y_width of xyouts [message #17574 is a reply to message #17449] |
Thu, 28 October 1999 00:00  |
m218003
Messages: 56 Registered: August 1999
|
Member |
|
|
In article <3815E4EF.93A13CA6@fz-juelich.de>,
"R.Bauer" <R.Bauer@fz-juelich.de> writes:
> Hi,
>
> I like to know exactly the y_width of a text in normal coordinates.
> I have written a small routine which unfortunately don't run with all
> devices set.
>
> Any other ideas are welcome
>
> I know already !D.Y_CH_SIZE but its only useful on some windows systems.
>
Hallo Reimar,
I am not exactly sure why !D.Y_CH_Size shouldn't work on all devices.
Here is a piece of code from my AxLabel routine which may help:
; Get y position for label
; Subtract one character size
PY = !Y.Window
PYOFF = CONVERT_COORD(1,!D.Y_CH_SIZE*CHARSIZE,/DEVICE,/TO_NORMAL)
PY = PY - 1.05*PYOFF[1]
(it calculates the position for a label on the x axis by placing it
below the axis with a 5% margin)
Viele Gruesse,
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|