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

Home » Public Forums » archive » Re: 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
Re: Plotting one ps file with different plots in separate pages [message #78474] Wed, 23 November 2011 07:14
David Fanning is currently offline  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 #78475 is a reply to message #78474] Wed, 23 November 2011 06:52 Go to previous message
ece is currently offline  ece
Messages: 12
Registered: June 2011
Junior Member
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.
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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to create a 2D mask that automatically half’s an irregularly shaped 2D array from top to bottom?
Next Topic: IDL QUESTIONS (INTERPOLATION)

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

Current Time: Wed Oct 08 17:34:52 PDT 2025

Total time taken to generate the page: 0.00739 seconds