MathGroup Archive 2000

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

Search the Archive

Re: Getting graphic outputs from background jobs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22313] Re: [mg22291] Getting graphic outputs from background jobs
  • From: Bojan Bistrovic <bojanb at physics.odu.edu>
  • Date: Thu, 24 Feb 2000 03:01:27 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

> 
> Hello. I am using mathematica 4.0 on a Unix worstation. I create text
> files from my notebboks and run them in the background with commands
> like:
> math < infile > outfile & , however if there is any graph command in the
> infile, then I won't see anything in the output, not even the output of
> the rest of the cells.  Actually mathematica does not run the notebook,
> which I can tell by how fast it is done with it. The output file
> contains a comment like Can't load graphic motif or something along
> those lines, and then lines like In1:=
> Out1:=  , and nothing else.
> 
>  I get the same result if I delete all the graphic-related commands, but
> make the first line of my file AppendTo[$Echo,"stdout"]. This is
> supposed to print the input lines in the output file, and causes trouble
> probably because I use greek characters in the input.
> 
> So the bottom line is: Is there a way of getting graphic output from
> background jobs? Any suggestions will be appreciated. Otto Linsuain.
> 
First, you suppres the graphics output ny adding the option to the plot
DisplayFunction->Identity:

In[1]:= myplot=Plot[ Sin[x] , {x, 0, 2 Pi} , DisplayFunction->Identity]
Out[1]=  --Graphics-- 

Then export the plot to the file:

In[2]:= Display["myplot.eps",myplot,"EPS"]
Out[2]=  --Graphics--

You hould have the PostScript file called myplot.eps somewhere on your disc.

Bye, Bojan

--
---------------------------------------------------------------------
Bojan Bistrovic,                               bojanb at physics.odu.edu
Old Dominion University, Norfolk VA & Jefferson Lab, Newport News, VA
---------------------------------------------------------------------


  • Prev by Date: Re: Notional NotebookOpen Nonplus?
  • Next by Date: Re: Linux: how compatible with add-ons ?
  • Previous by thread: Re: Getting graphic outputs from background jobs
  • Next by thread: Vector and Matrix Differentiation with Mathematica