Re: Plotting one ps file with different plots in separate pages [message #78474] |
Wed, 23 November 2011 07:14 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ece writes:
> Yes, this does not produce separate files. I wan this code to produce
> one ps file with 1000 pages. But it doesn't work and I can not see my
> self what the problem is.
Yes, and I'm telling you that the code you gave us
*does* work and that if you want help fixing broken
code you have to supply us with code that is, you
know, broken. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Plotting one ps file with different plots in separate pages [message #78480 is a reply to message #78475] |
Wed, 23 November 2011 06:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ece writes:
> 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
I would guess something else is wrong because the code
you show definitely does NOT produce 100 separate
files. It produces 100 pages of PostScript output.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|