comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » y_width of xyouts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: y_width of xyouts [message #17574 is a reply to message #17449] Thu, 28 October 1999 00:00 Go to previous message
m218003 is currently offline  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 [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: get_boundingbox
Next Topic: How to import an source interface ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:00:19 PDT 2025

Total time taken to generate the page: 0.40007 seconds