MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Redirect output

  • Subject: [mg3096] Re: Redirect output
  • From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
  • Date: 31 Jan 1996 04:01:24 -0600
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: University of Colorado, Boulder
  • Sender: daemon at

In article <4ekef4$5o1 at>,
Florian Schoenbeck <schoenbe at> wrote:
>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, ...]]

You also can send an already-computed graphics object to a file by calling 
Display on it directly.

	s = OpenWrite["filename"];
	Display[s, g]

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at

  • Prev by Date: Re: Redirect output
  • Next by Date: Re: How to mutiply a 3x1 and 1x3 vector
  • Previous by thread: Re: Redirect output
  • Next by thread: How to mutiply a 3x1 and 1x3 vector