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

Home » Public Forums » archive » Re: Update PostScript
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: Update PostScript [message #67228] Tue, 21 July 2009 04:17
Lasse Clausen is currently offline  Lasse Clausen
Messages: 22
Registered: August 2001
Junior Member
On 20 July, 17:46, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
> On Mon, 20 Jul 2009, Xavi Llort wrote:
>> Hi everybody!
>
>> I have an easy question... Can I open a PostScript file to include a
>> new plot in it, without erasing the current information?
>
>> For example, I create a PostScript in a given routine, and later on, I
>> want to include a new plot -in the same PS file- in an other routine.
>
>> Thank you very much!
>
> In IDL, no. In Linux, you can merge PS files with:
>
> gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps file1.ps file2.ps ... -c quit
>
> regards,
> lajos

Hi,

just as a side note, that also works under Windows if you use

gswin32c -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps file1.ps
file2.ps ... -c quit

Cheers
Lasse Clausen
Re: Update PostScript [message #67235 is a reply to message #67228] Mon, 20 July 2009 09:54 Go to previous message
Xavi Llort is currently offline  Xavi Llort
Messages: 15
Registered: September 2006
Junior Member
On 20 jul, 18:46, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
> On Mon, 20 Jul 2009, Xavi Llort wrote:
>> Hi everybody!
>
>> I have an easy question... Can I open a PostScript file to include a
>> new plot in it, without erasing the current information?
>
>> For example, I create a PostScript in a given routine, and later on, I
>> want to include a new plot -in the same PS file- in an other routine.
>
>> Thank you very much!
>
> In IDL, no. In Linux, you can merge PS files with:
>
> gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps file1.ps file2.ps ... -c quit
>
> regards,
> lajos

Thank you very much for this option!

If I do not find a way of doing it inside IDL I will create both PS
files and merge later with gs.
Thanks again,
Xavi
Re: Update PostScript [message #67236 is a reply to message #67235] Mon, 20 July 2009 09:46 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Mon, 20 Jul 2009, Xavi Llort wrote:

> Hi everybody!
>
> I have an easy question... Can I open a PostScript file to include a
> new plot in it, without erasing the current information?
>
> For example, I create a PostScript in a given routine, and later on, I
> want to include a new plot -in the same PS file- in an other routine.
>
> Thank you very much!
>

In IDL, no. In Linux, you can merge PS files with:

gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps file1.ps file2.ps ... -c quit

regards,
lajos
Re: Update PostScript [message #67237 is a reply to message #67236] Mon, 20 July 2009 09:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xavi Llort writes:

> I have an easy question... Can I open a PostScript file to include a
> new plot in it, without erasing the current information?
>
> For example, I create a PostScript in a given routine, and later on, I
> want to include a new plot -in the same PS file- in an other routine.

And there is an easy answer: no. :-)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.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: Fit a Gaussian to a Histogram Plot
Next Topic: spherical harmonic representation

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

Current Time: Wed Oct 08 11:44:17 PDT 2025

Total time taken to generate the page: 0.00674 seconds