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

Home » Public Forums » archive » Re: character size in normal coordinates
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: character size in normal coordinates [message #13625 is a reply to message #13616] Sun, 22 November 1998 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Martin Schultz (mgs@io.harvard.edu) writes:

> My guess would be :
>
> pixsize = !d.y_ch_size * !p.charsize ; or your own charsize --> gives
> size in pixels
> normsize = convert_coord(pixsize,/device,/to_normal)
> UGLY! That doesn't work! Well, then
> normsize = pixsize/!d.y_size

Careful here. The expression:

normsize = pixsize / !D.Y_Size

is going to evaluation to 0, almost always. :-)

Try:

normsize = pixsize / Float(!D.Y_Size)

This one has bit me enough that I almost always
remember it. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: max value of function
Next Topic: Re: 5.2 looks nice

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

Current Time: Wed Oct 08 13:36:49 PDT 2025

Total time taken to generate the page: 0.00384 seconds