MathGroup Archive 1995

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

Search the Archive

Mathlink & Graphics....

  • Subject: [mg2174] Mathlink & Graphics....
  • From: gandalf at dogbert.ugcs.caltech.edu ( The GodFather)
  • Date: Thu, 12 Oct 1995 05:58:13 GMT
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: California Institute of Technology, Pasadena
  • Sender: daemon at wri.com ( )


	Unix Platform....

	I've been trying to do this for a bit of time....

	Basically, I would like from a C-code, to generate
	a list of numbers {{1,2},{2,1}} and plot their positions
	using mathematica's handy plotting routines....

	If someone could post a way to simply execute a 
	Plot[x^2,{x,-2,2}], and either have mathematica display
	it (in X), or return PostScript to the link stream or
	to an output file I would be extremely grateful....

	An example of the type of thing I'm trying to do....

	from within C-code:

	MLPutFunction(link,"Extend",1); 
	PutString(link,"Plot[x^2,{x,-2,2});
	
	If there was some way of setting the DisplayFunction
	so mathematica would then just plot this thing out 'twould
	be beautiful.  If there was some way I could get it to
	output the plot to a postscript file, I would be joyous.
	If there was any way I could get useable output, basically
	I would be dancing around for weeks....

	with much appreciation,

	-John Joseph


  • Prev by Date: Re: Plotting
  • Next by Date: Help on use of Packages
  • Previous by thread: Re: Solid Geometry Problem
  • Next by thread: Mathlink & Graphics....