Re: Redirect output
- To: mathgroup at smc.vnet.net
- Subject: [mg3096] Re: Redirect output
- From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
- Date: Wed, 31 Jan 1996 03:04:46 -0500
- Organization: University of Colorado, Boulder
- Sender: owner-wri-mathgroup at wri.com
In article <4ekef4$5o1 at dragonfly.wri.com>,
Florian Schoenbeck <schoenbe at informatik.uni-muenchen.de> wrote:
>Hi,
>
>how can I redirect the graphical output of Mma to a PostScript file
>(using $Output and $Display ??)?
>
The easiest way is to set the global value of $Display to an arbitrary stream.
s = OpenWrite["filename"];
Block[{$Display=s}, Plot[f, ...]]
Close[s];
You also can send an already-computed graphics object to a file by calling
Display on it directly.
s = OpenWrite["filename"];
Display[s, g]
Close[s];
Dave Wagner
Principia Consulting
(303) 786-8371
dbwagner at princon.com
http://www.princon.com/princon
==== [MESSAGE SEPARATOR] ====