Re: How to put multi figure in one EPS file [message #56490] |
Thu, 25 October 2007 19:50 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Nianming Zuo writes:
> Why would you
> like to develop open source software on a commercial platform (such as
> IDL) ? Actually, there are many free softwares you can rely on,
> such as Python, Scilab, and et.al..
My wife would tell you it's because I don't have
a lick of business sense. But the truth is, I just
like all the chicks and beer the fame brings. :-)
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.")
|
|
|
Re: How to put multi figure in one EPS file [message #56491 is a reply to message #56490] |
Thu, 25 October 2007 17:51  |
Nianming Zuo
Messages: 13 Registered: August 2007
|
Junior Member |
|
|
David, thank you! It helps me out soon!
But I still wondered why there is not an such usually used
function inherent in IDL, instead it depends on the 3rd-party tools.
Additionally, David, I have another personal question. Why would you
like to develop open source software on a commercial platform (such as
IDL) ? Actually, there are many free softwares you can rely on,
such as Python, Scilab, and et.al..
[Indeed, I don't have and prejudice against IDL.]
Best,
Nico
On 10 25 , 8 46 , David Fanning <n...@dfanning.com> wrote:
> 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.")
|
|
|
Re: How to put multi figure in one EPS file [message #56521 is a reply to message #56491] |
Thu, 25 October 2007 05:46  |
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.")
|
|
|