Re: Text processing on plots [message #8241 is a reply to message #8240] |
Fri, 14 February 1997 00:00  |
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
-----------------------------------------------------------
|
|
|