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

Home » Public Forums » archive » Re: change line spacing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: change line spacing [message #8324] Mon, 24 February 1997 00:00
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
Try taking a look at DISP_TXT. I think with a liitle tweaking you can
get it to do what you want.

Check out this snippet:
IDL> window, 0
IDL> strings = strarr(4)
IDL> strings(0) = '`J0.5`'
IDL> strings(1) = 'test'
IDL> strings(2) = 'Another test'
IDL> strings(3) = 'Final test'
IDL> fonts = ''
IDL> disp_txt,strings,fonts,28,xstart = 100, ystart = 500
IDL> disp_txt,strings,fonts,56,xstart = 400, ystart = 500

Note that if you want to use these for outputting text to a plot window
you'll have to do the device to data coordiantes conversion yourself as
DISP_TXT doesn't have a /data keyword.

Good luck,
phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
Re: change line spacing [message #8328 is a reply to message #8324] Mon, 24 February 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
R. Bauer writes:

> How can we change the line spacing by xyouts and !C?

I don't think it can be done. At least, I've never discovered
how to do it in repeated attempts to solve the problem. I usually
end up resorting to multiple XYOUTS commands.

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
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: variable number of colors available on screen
Next Topic: Re: defining of x_ch_size in !D

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

Current Time: Wed Oct 08 17:44:37 PDT 2025

Total time taken to generate the page: 0.00683 seconds