MathGroup Archive 1999

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

Search the Archive

Re: Display (was: psfix)

  • To: mathgroup at
  • Subject: [mg17172] Re: Display (was: psfix)
  • From: paulh (P.J. Hinton)
  • Date: Sun, 18 Apr 1999 23:53:16 -0400
  • Organization: Wolfram Research, Inc.
  • References: <7f9iod$>
  • Sender: owner-wri-mathgroup at

In article <7f9iod$56i at>, hans.steffani at (Hans Steffani) writes:

> The Helpbrowser says
> Display[channel, graphics, "format"] writes
>           graphics or sound in the specified format. 
> but this does not work.
> But I found out that I should be
> Display[string, graphics, "format"] writes
>           graphics or sound in the specified format. 
> with string being the filename of the graphic file.

What do you define as "does not work"?  An example of a channel is a 
pipe, and this surely works on Unix versions of Mathematica.

If you have either PBMPlus or netPBM installed on your system, 
try something like this:

Plot[Sin[x], {x,0,2Pi}, 
  DisplayFunction :> (
      Display["!pnmsmooth | ppmtogif > testme.gif", #, "PBM"]&)]

The plot is fed into psrender, which converts the graphic to a 
portable bitmap.  It is then piped through two of the filter tools
from the above toolkits to create a somewhat blurred gif.

I believe that you can also use an OutputStream[] as a channel.

P.J. Hinton	
Mathematica Programming Group		paulh at
Wolfram Research, Inc.

  • Prev by Date: Re: How do I make my own pallettes
  • Next by Date: Re: BesselJZeros problem/bug?
  • Previous by thread: Display (was: psfix)
  • Next by thread: Re: Display (was: psfix)