Mathematica 9 is now available
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 1992

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

Search the Archive

Redirecting Graphics Output

  • To: mathgroup at
  • Subject: Redirecting Graphics Output
  • From: "Terry Longrie" <longrie at>
  • Date: Tue, 15 Sep 92 11:18:42 CDT


I'm trying to find a way to use one command to redirect Mathematica's
graphics output to a file or pipe it through a command.  We have
Mathematica running on a NeXT here but would like to be able to 
run it remotely from an X-Terminal and then pipe the graphics to
GhostScript to view.  I've been playing around with the Display
and DisplayFunction commands and I've found that this will work on
a one time basis: (this is all one big command)

 Display["!/usr/bin/psfix > /tmp/; /usr/local/bin/gs /tmp/ &",
 Plot3D[ Sin[x] Sin[3y], {x, -2, 2}, {y, -2, 2}] ]

However, it's really difficult to do this every time.  Is there any
way to set $Display or $DisplayFunction so that all graphics produced
afterwards will be piped to a command?

					Thank You
					Terry Longrie
					longrie at

  • Prev by Date: Re: D[myFunc[g[x]]] -> myFunc[D[g[x],x]: How to do in ch
  • Next by Date: remote connection setup problem
  • Previous by thread: Re: D[myFunc[g[x]]] -> myFunc[D[g[x],x]: How to do in ch
  • Next by thread: remote connection setup problem