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

Home » Public Forums » archive » Re: writing to 2 "windows" in idl?
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: writing to 2 "windows" in idl? [message #5634 is a reply to message #5633] Thu, 18 January 1996 00:00 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
cas@revelle.cdc.noaa.gov (Cathy Smith) wrote:

> Hi- I'd like to write out character strings to a gif imagee and determine
> their lengths (in pixels). I can do this using xyouts and this works for
> most of what I want to do. However, now I would like to find the length
> of a character string BEFORE I write it out.

XYOutS has two keyword parameters that may help:

width=lg puts the length of the text into the variable lg.
Units is normalized coordinate units.

Charsize=-1 suppresses any graphical output.

> I tried writing out
> in the same color as my image to get the returned length and then writing
> it out again in the color I want. This works except that I cover up some
> lines on my original plot that I don't want covered. Is there a way to
> write to a "fake" device instead?

The above keywords should work with any device, no need to use a fake.

[remainder deleted]

Hope this helps
Norbert Hahn
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wanted double Gaussian fit IDL routine
Next Topic: MPEG creation with IDL

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

Current Time: Sat Oct 11 12:57:20 PDT 2025

Total time taken to generate the page: 1.20018 seconds