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

Home » Public Forums » archive » Re: ? - Putting text on TV output
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: ? - Putting text on TV output [message #6661] Wed, 31 July 1996 00:00
Robert.M.Candey is currently offline  Robert.M.Candey
Messages: 23
Registered: June 1995
Junior Member
In article <Robert.M.Candey-3007962002150001@news.gsfc.nasa.gov>,
Robert.M.Candey@gsfc.nasa.gov (Robert M. Candey) wrote:

> In article <31FE5F10.696F@fccc.edu>, m_ochs@fccc.edu wrote:
>
>> I am displaying a series of grey scale images, rotating through them
>> using the tv command. I would like to place the number of the image
>> displayed next to the greyscale image so that I know how far through
>> the series I am. Is this possible and if so, can anyone point me in
>> the right direction?
>>
>> -- Michael Ochs
>> m_ochs@fccc.edu
>
> at top of program:
> last = -1
> xpos = 0.9 ; X position in normalized coordinates
> ypos = 0.9 ; Y position in normalized coordinates
>
> within your loop:
>
> if last ne -1 then xyouts, xpos, ypos, string(last,format='(I3)'), $
> color=!p.background ; this clears the previous number
> tv, ...
> xyouts, xpos, ypos, string(i,format='(I3)'), $
> color=!p.color ; this draws the number i
> last = i ; store number to clear next time

Sorry, I forgot to add "/normal" to the xyouts commands.

--
Robert.M.Candey@gsfc.nasa.gov
NASA Goddard Space Flight Center, Code 632
Greenbelt, MD 20771 USA 1-301-286-6707
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: reading in a series of images
Next Topic: Re: IDL for Solaris 2.5?

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

Current Time: Wed Oct 08 17:05:13 PDT 2025

Total time taken to generate the page: 0.00381 seconds