Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Redirect output

  • To: mathgroup at
  • 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

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: ParametricPlot3D
  • Next by Date: Re: Redirect output
  • Previous by thread: Redirect output
  • Next by thread: Re: Redirect output