Re: ? - Putting text on TV output [message #6661] |
Wed, 31 July 1996 00:00 |
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
|
|
|