Re: XYOUTS overwrites [message #2868 is a reply to message #2852] |
Wed, 07 September 1994 07:36   |
landers
Messages: 45 Registered: May 1993
|
Member |
|
|
In article <34i1qc$1092@jurpool0.rz.uni-frankfurt.de>, frank@chaos.uni-frankfurt.dbp.de (Frank Hoffsuemmer) writes:
|> Hi,
|>
|> I want to plot some images using the TVSCL routine in IDL (ver 3.1.1).
|> Basically, what I want to do is something like
|>
|> FOR counter=0,n DO BEGIN
|> XYOUTS, 0.1, 0.9, /NORMAL, '!3 Image Number: '+STRING(counter)
|> TVSCL, image(counter)
|> ENDFOR
|>
|> The problem is, this way, XYOUTS doesn't clear the place before writing on it.
|> My XYOUTS print is just one of many in the actual window, and it's not supposed to be
|> a window- or plot-title (even if it might look like this in my example).
|> So: how to do that??
|> Any help appreciated. Thanx
Not sure I understand.... If you want the entire plot window to be erased,
then use ERASE before the XYOUTS.
If you want the area "under" the XYOUTS string to be erased first (like a
solid background rather than overlaying the string, then you could do
*something* like this:
width = !D.X_Ch_Size * STRLEN( the_string )
height = !D.Y_Ch_Size
blank = REPLICATE( !P.Background, width, height )
TV, blank, x_out, y_out, /Normal
XYOUTS, x_out, y_out, /Normal, the_string
This is a bit rough, and doesn't exactly center the blank area oround the
text, but you can work that out for yourself....
----
Dave
|>
|>
|> -=-=-=-=-=-=-=-=-=-=-=-=--=-=--=-=-=-=-=-=-=-=-=-=-=-=--=-=- =-=-=-=-=-=-=-=-=-=-
|>
|> Frank Hoffsuemmer E-Mail:frank@chaos.uni-frankfurt.de
|> Institut fuer Theor. Physik ,__o
|> Robert-Mayer-Str. 8 -\_<, Office: Phone (49) 69 / 798-3359
|> D-60054 Frankfurt am Main (*)/'(*) Fax (49) 69 / 798-8354
|> Germany Home : Phone (49) 69 / 289447
|>
|> -=-=-=-=-=-=-=-=-=-=-=-=--=-=--=-=-=-=-=-=-=-=-=-=-=-=--=-=- =-=-=-=-=-=-=-=-=-=-
|>
|>
|>
|
|
|