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

Home » Public Forums » archive » Re: title for TVSCL
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: title for TVSCL [message #2831] Fri, 30 September 1994 02:15
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
Frank Hoffsuemmer (frank@chaos.uni-frankfurt.dbp.de) wrote:
: Hello,

: I'm printig >20 2cm x 2cm pictures on a A4 page using tvscl and postscript.
: since there is no title option for tvscl, i don't know how to enumerate these
: pictures. the numbers could also appear within the pictures, i just don't know how to
: do it. fiddeling with the /normal coordinates in postscript is defenitely not the
: solution for me. anybody?

: -----
: frank hoffsuemmer
: inst. f. theor. physik
: univ. frankfurt am main
: frank@chaos.physik.uni-frankfurt.de

You need to use xyouts to write the string where you want it, or you
could try using a plot,/nodata to create a data coordinate system and add
a title. e.g.

plot, /nodata, fltarr(2), xsty=4, ysty=4, xrange=[0,1], yrange=[0,1], $
title='MY TITLE'
tvscl, image, 0., 0., xsize=1., ysize=1., /data

N.B. this will only work in PS (or any other future device with scalable
pixels).

--
James Tappin, School of Physics & Space Research
University of Birmingham
sjt@xun8.sr.bham.ac.uk
"If all else fails--read the instructions!"

O__
-- \/`
Re: title for TVSCL [message #2836 is a reply to message #2831] Wed, 28 September 1994 14:00 Go to previous message
landers is currently offline  landers
Messages: 45
Registered: May 1993
Member
Use XYOUTS

like this:

XYOUTS, x_coord, y_coord, 'Your title here'

You can add keywords /Device or /Normal ( or /Data, which won't be valid if
you only TVSCL'd, since no data coords were set up)

You can also add an Alignment keyword to tell it to center, left, or right
justify the text about the coordinatde point. Use Alignment=0 for left, =1
for right, =0.5 for center.

So, you can do something like this

TVSCL, image

XYOUTS, image_width / 2, image_height, 'Title', Align=0.5, /Device

Add a bit to the height to move the title up off the top of the image.

Also add Charsize keyword to make the title bigger.

etc...

;Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Wanted: Land Mass Color Fill Routine
Next Topic: idltool

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

Current Time: Fri Oct 10 16:04:27 PDT 2025

Total time taken to generate the page: 0.56250 seconds