Re: TV and the postscript device [message #2719] |
Tue, 30 August 1994 01:35 |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
In article <33tjhmINNm4v@lanews.la.asu.edu>, rouse@sevens.la.asu.edu (Roger Rouse) writes:
|> Hi all,
|>
|> I'm trying to put plots and pictures on the same page of hardcopy. When
|> I execute the script with device set to 'X' (set_plot,'x') then everything
|> looks good in the window. However, when I change to postscript usually
|> with
|>
|> set_plot,'ps' & device,/landscape
|>
|> the postscript output does not look the same as the window output. Apparently,
|> the pictures are displayed to fill the device's plotting area. How can I get
|> the postscript output to look like what I see in the window? That is, what
|> arguments to I give TV so that the picture is positioned properly in the
|> postscript image?
Use:
TV,IMAGE,X_POSITION,Y_POSITION,XSIZE=<X_SIZE>,YSIZE=<Y_SIZE >,$
[,/NORMAL,/INCHES,/CENTIMETERS,/DATA]
If you use e.g. a PLOT statement first to define the axes,
then you could use either DATA coordinates or the values in
!P.CLIP in order to make your image fill the plot region
exactly, i.e.,
Plot,x,y,xrange=....
TV,IMAGE,!P.CLIP(0),!P.CLIP(1),XSIZE=!P.CLIP(2)-!P.CLIP(0),$
YSIZE=!P.CLIP(3)-!P.CLIP(1),/DEVICE
Stein Vidar
|
|
|