easiest way to display a plot from C to kernel using Mathlink?
- To: mathgroup at smc.vnet.net
- Subject: [mg22366] easiest way to display a plot from C to kernel using Mathlink?
- From: dave linenberg <dlinenbe at home.com>
- Date: Sat, 26 Feb 2000 22:04:53 -0500 (EST)
- Organization: @Home Network
- Sender: owner-wri-mathgroup at wolfram.com
I am interested in using Mathlink to display plots, calling it externally from another program. I am calling the Mathematica 4.0 kernel via C function calls in an external program using Linux (Redhat 6.0) I have searched the newsgroups for the last few years, and have not found much information. I have Gayley's Mathlink tutorial, but it falls apart in addressing the display of postscript files or graphics when calling the Mathematica kernel from external programs. (No examples). I would like to know - * how to generate postscript files using C code w/ Mathlink / Mathematica 4.0 Linux Redhat 6.0, gcc/g++ * as well as ... how to automatically open a separate window to display such graphics I saw the mathlink/ frontEnd.C code posted, and although this code compiled/ linked and produced a postscript file, ghostview choked on it. ( it uses obsolete function calls as well) Could someone direct me to sources of code showing how to do this ( either on the web or recommend books that I might purchase that would show how to write, essentially, C coded front ends), or post some code or hints. Thanks, dave linenberg