Re: Multiple image plots in postscript [message #932 is a reply to message #919] |
Thu, 11 March 1993 20:11  |
jdlb
Messages: 11 Registered: July 1992
|
Junior Member |
|
|
kevin@dipl.rdd.lmsc.lockheed.com (Kevin Anderson) writes:
> Does anybody know how to put multiple image plots on 1
> page in postscript using pvwave CL?
> [...]
> The only way I have discovered to get multiple image plots
> on the same postscript page is to use the position parameter
> when calling tv or tvscl, but now the problem is the images
> are again scaled to the entire size of the plot area.
Because PostScript has scalable pixels, you must specify the xsize and
ysize parameters, as well as the position parameter, in TV or TVSCL.
I don't know about PV-Wave, but the following works in IDL:
; Display four images in a 2x2 grid
; Assume data(x,y,4) = array containing the 4 images
set_plot, 'ps' ;request PostScript output
device, ... ;modify page size, orientation, etc. as desired
ximsize = 0.5*!d.x_size ;define output image size
yimsize = 0.5*!d.y_size ;note: 0.5 assumes 2x2 grid
for i=0,3 do begin ;display the 4 images, using i as position index
tv, data(*,*,i), i, xsize=ximsize, ysize=yimsize
endfor
Hope this helps,
Jeff
% Jeff de La Beaujardiere % jdlb@mamane.ifa.hawaii.edu %
% Institute for Astronomy % 808-956-9843 %
% University of Hawai`i % fax 956-9402 %
|
|
|