TV/postscript problem [message #13395] |
Thu, 05 November 1998 00:00  |
R.Balthazor
Messages: 7 Registered: June 1996
|
Junior Member |
|
|
I'd be grateful if anyone could point me in the right direction with
this problem.
I'm running a program with the general form shown below. It cycles over
20 timesets of two datasets, each time reading them both in and
displaying one as a false-color image on a map projection and then
displaying the second as a contour image overlaid on it. Each time it
flashes up the completed image satisfactorily on the X-windows, and the
postscript file builds up until it is 20 pages long.
However, each page of the postscript file is a horrible two-tone mess of
black and white, looking like it is an 'overexposed' photograph and
nothing like what was on the screen; and moreover, the TV,imageset is
larger than and displaced from the desired position.
What have I done wrong? I've tried;
- doing a single dataset read in case it was to do with multiple pages
written to the postscript file - but still the horrible mess.
- using CONTOUR,dataset1,/FILL as an approximation to TV,imageset1; this
works perfectly (but I want more than 26 levels)
- using WRITE_GIF; this works perfectly.
I'd be very grateful for any suggestions; I presume the problem is in
the postscript writing.
;==============
PRO myprogram
SET_PLOT,'X'
mainprogram
SET_PLOT,'PS'
DEVICE,file='image.ps',/LANDSCAPE,XSIZE=27,YSIZE=17,XOFFSET= 2,YOFFSET=28.5,/TIMES,/COLOR
mainprogram
DEVICE,/CLOSE
END
;=============
mainprogram
time=-1
REPEAT BEGIN
time=time+1
;(Read in dataset1,dataset2, and some processing)
MAP_SET,(arguments)
imageset1=MAP_IMAGE(dataset1,startx,starty,other arguments)
TV,imageset1,startx,starty
CONTOUR,dataset2,/OVERPLOT
ENDREP UNTIL time EQ 19
END
;==============
|
|
|