easiest way to display a plot from C to kernel using Mathlink?
- To: mathgroup at smc.vnet.net
- Subject: [mg22348] easiest way to display a plot from C to kernel using Mathlink?
- From: dave linenberg <dlinenbe at home.com>
- Date: Fri, 25 Feb 2000 21:13:45 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I am interested in using Mathlink to display plots, calling it externally. I am calling the Mathematica 4.0 kernel via C function calls in my own 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 lfile, 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