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

Home » Public Forums » archive » Re: TV and the postscript device
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: TV and the postscript device [message #2719] Tue, 30 August 1994 01:35
steinhh is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: TV and the postscript device
Next Topic: Re: Please help. PostScript Import

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

Current Time: Wed Oct 08 19:17:00 PDT 2025

Total time taken to generate the page: 0.00550 seconds