Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

PostScript Graphics with MathLink: An Example Program

Kevin Leuthold

Simple example to call Mathematica to generate a PostScript plot.

For a final program, you would have to include a number of other elements, in particular, error recovery from this program is poor.

We use the Enter function to give strings to the kernel.

Original program written for Mathematica 2.1. Updated for Mathematica 3.0 by Kevin Leuthold, Wolfram Research on 12/12/97.

To build this program, use the instructions in the MathLink Developer's Guide for building factor with your particular compiler - substitute this file for factor.c.

To run this program use the command-line below: Unix: psgen -linkname "math -mathlink" Mac or Windows: psgen -linklaunch

*Mathematica Technology > Linking Technology > MathLink

questions and answers, questions & answers, Q & A, Q&A, PostScript, PostScript Graphics, MathLink, Graphics, Sparc, example, Programming, C language, C programming language, ML-Example.c

ML-Example.c (2.9 KB) - C program

Files specific to Mathematica 2.2 version:
ML-Example.c (2.3 KB) - C program

Translate this page: