Re: title for TVSCL [message #2831] |
Fri, 30 September 1994 02:15 |
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  |
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
|
|
|