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

Home » Public Forums » archive » Re: How to put multi figure in one EPS file
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: How to put multi figure in one EPS file [message #56521 is a reply to message #56491] Thu, 25 October 2007 05:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Nianming Zuo writes:

> set_plot, 'ps'
> device,filename='proj.eps',/encaps,/inches,xsize=4,ysize=2,b its=16
> tvscl, p1, 0
> tvscl, p2, 1
> device, /close_file
> set_plot, 'win'
>
> On Windows OS, the code above can not put image p1, p2 (both are
> 256*256)
> in the same proj.eps file, and there is only one.
> But in " set_plot, 'win' " , it is true, when set the window as,
> window, /free, xsize=512, ysize=256

Well, sure enough. This is the first time I've been
surprised by IDL in a long time. :-)

Here is how I would put two images side by side
in a window and in PostScript:

set_plot, 'ps'
device,filename='proj.eps',/encaps,/inches,xsize=4,ysize=2,b its=8
!P.MULTI=[0,2,1]
TVSCALE, p1, Margin=0
TVSCALE, p2, Margin=0
device, /close_file
!P.MULTI=0
set_plot, 'win'

You can find TVSCALE here:

http://www.dfanning.com/programs/tvscale.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Using SYMCAT with LEGEND
Next Topic: kriging!!!!!!!!!

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

Current Time: Sat Oct 11 21:09:41 PDT 2025

Total time taken to generate the page: 7.83210 seconds