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

Home » Public Forums » archive » Plotting one ps file with different plots in separate pages
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Plotting one ps file with different plots in separate pages [message #78483] Wed, 23 November 2011 04:23 Go to next message
ece is currently offline  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 Go to previous message
Russell[1] is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interpolation
Next Topic: Re: Scrolling text in a widget_label

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

Current Time: Wed Oct 08 17:47:51 PDT 2025

Total time taken to generate the page: 0.00682 seconds