Plotting one ps file with different plots in separate pages [message #78483] |
Wed, 23 November 2011 04:23  |
ece
Messages: 12 Registered: June 2011
|
Junior Member |
|
|
I have a loop in my program that i deal with many objects, I can plot
the individual objects to separate ps files.
I want to have a one ps file with each individual plot on different
pages.
I tried many things But, I couldn't manage. Maybe you can help me?
For example I tried to open the ps file outside the loop, but I get an
empty file.
set_plot, 'ps'
device, filename='all.ps'
for i=0, 100 do begin
readcol,files_array(i),a,b,F='(f,f)'
plot,a,b
oplot,c,d
erase
endfor
device,/close
|
|
|
Re: Plotting one ps file with different plots in separate pages [message #78568 is a reply to message #78483] |
Fri, 09 December 2011 08:01  |
Russell[1]
Messages: 101 Registered: August 2011
|
Senior Member |
|
|
It sounds like you want an IDL trick to do something that is,
otherwise trivial for LINUX or Mac (and I'll bet also for Windows).
Why not just write your 1000 files to disk, then spawn out to
something else to concatenate them? Such as psjoin?
http://homepage3.nifty.com/tsato/tools/psjoin.html
I know it's enticing to keep that within IDL, and I (for one) love the
challenge of finding the "right" way --- but this seems that shelling
out is far too practical (even to me).
-R
On Nov 23, 7:23 am, ece <ecekile...@gmail.com> wrote:
> I have a loop in my program that i deal with many objects, I can plot
> the individual objects to separate ps files.
> I want to have a one ps file with each individual plot on different
> pages.
> I tried many things But, I couldn't manage. Maybe you can help me?
>
> For example I tried to open the ps file outside the loop, but I get an
> empty file.
>
> set_plot, 'ps'
> device, filename='all.ps'
>
> for i=0, 100 do begin
> readcol,files_array(i),a,b,F='(f,f)'
>
> plot,a,b
> oplot,c,d
> erase
>
> endfor
> device,/close
|
|
|