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: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: University of Colorado, Boulder
  • Sender: daemon 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


  • 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