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 #13629 is a reply to message #13625] Sun, 22 November 1998 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Axel Schweiger wrote:

> How does one convert the character size into normal coordinates.
> --
> # Axel Schweiger
>

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

[or maybe you'll have to use !d.x_ch_size and !d.x_size for better results ...]

Hope this gives you an idea at least,
Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[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:52:54 PDT 2025

Total time taken to generate the page: 0.00454 seconds