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

Home » Public Forums » archive » Re: Text processing on plots
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: Text processing on plots [message #8241 is a reply to message #8240] Fri, 14 February 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Jeff Hicke <jhicke@al.noaa.gov> writes:

> I am interested in whether anyone has any IDL routines which allows one
> to overplot a variable length text string in the manner of a word
> processor. In other words, if I define a box (or width of a box), then
> the routine overplots the text within this box's width. If it is longer
> than one line, it will wrap to a new line. I'm looking at adding figure
> captions to IDL plots. Can anyone help?

You might have a look at my tip on calculating the width of a string
on my web page. (See also the program STR_SIZE while you are
there.) This doesn't do *exactly* what you want, but it may give
you some ideas. The STR_SIZE program calculates what character
size a string should be to fit into a defined portion of the display
window. I use it for captions on resizeable graphics windows.

Cheers!

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Bicubic Spline Interpolation
Next Topic: Re: Constructing Color Tables in IDL--Duh!

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

Current Time: Sun Oct 12 09:41:42 PDT 2025

Total time taken to generate the page: 1.11875 seconds