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

Home » Public Forums » archive » Re: "Graphics produced by IDL"
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: "Graphics produced by IDL" [message #65686] Mon, 16 March 2009 19:58
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
On Mar 16, 1:49 pm, "R.G. Stockwell" <noemai...@please.com> wrote:
> "Ed Hyer" <ejh...@gmail.com> wrote in message
>
> news:55f40f90-47cb-43c6-9a40-b0582029a0d6@d36g2000prf.google groups.com...
>
>> This text is inserted into some tag or other in PostScript files
>> created by IDL. Anyone know how I might substitute custom text in
>> there?
>
> postscript is a text file.
>
> open it in an editor and type in whatever you want.
>
> cheers,
> bob

There is a line like
%%Title: Graphics produced by IDL

near the top of the PS file - it would be easy to swap that out with
your own version like
%%Title: Graphics produced by ME

chris
Re: "Graphics produced by IDL" [message #65688 is a reply to message #65686] Mon, 16 March 2009 16:49 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Ed Hyer" <ejhyer@gmail.com> wrote in message
news:55f40f90-47cb-43c6-9a40-b0582029a0d6@d36g2000prf.google groups.com...
> This text is inserted into some tag or other in PostScript files
> created by IDL. Anyone know how I might substitute custom text in
> there?

postscript is a text file.

open it in an editor and type in whatever you want.


cheers,
bob
Re: "Graphics produced by IDL" [message #65691 is a reply to message #65688] Mon, 16 March 2009 15:02 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
David Fanning wrote:
>> This text is inserted into some tag or other in PostScript files
>> created by IDL. Anyone know how I might substitute custom text in
>> there?
>
> I'm not sure what you mean by "in there", but if you
> mean in the PostScript file, you can use the OUTPUT
> keyword to the DEVICE command to send any string you
> like to the PostScript file.
>
> Cheers,
>
> David
>

The OUTPUT keyword is for sending PostScript commands directly to the
file. I assume you are wanting to include some type of metadata, not
PostScript commands? The only thing I can think of now is to
post-process with sed or some other text utility:

sed -e"s/produced by IDL/produced by me/" idl.ps > my.ps

You could even do this in IDL since it is just text.

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
Re: "Graphics produced by IDL" [message #65692 is a reply to message #65691] Mon, 16 March 2009 14:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> This text is inserted into some tag or other in PostScript files
> created by IDL. Anyone know how I might substitute custom text in
> there?

I'm not sure what you mean by "in there", but if you
mean in the PostScript file, you can use the OUTPUT
keyword to the DEVICE command to send any string you
like to the PostScript file.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://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: Hey! You can execute multi-line statements from the IDL command prompt!
Next Topic: Re: Discrete Color Bars

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

Current Time: Wed Oct 08 15:40:00 PDT 2025

Total time taken to generate the page: 0.00477 seconds