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

Home » Public Forums » archive » Re: Multiple image plots in postscript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multiple image plots in postscript [message #918] Thu, 18 March 1993 09:29 Go to previous message
kevin is currently offline  kevin
Messages: 17
Registered: August 1992
Junior Member
>>> 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 %

> This sounds like another one for the new FAQ.

> Bill Thompson

I used the technique in Jeff's code to create a more general multiple
image plotting routine. Instead of hardwiring the position and size
of the images, I used the !p.multi variable to place images in either
the X window or a postscript plot. This way you can treat images
just like 2D or 3D plots. It seems like a natural thing to do. I wonder
why PVI didn't do it.

Kevin Anderson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: A couple of questions
Next Topic: Re: Readf and line lenght limit

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

Current Time: Wed Oct 08 15:23:17 PDT 2025

Total time taken to generate the page: 0.00389 seconds