Wolfram Library Archive


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

PostScript Graphics with MathLink: An Example Program
Author

Kevin Leuthold
Description

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
Subject

*Wolfram Technology > Linking Technology > MathLink
Keywords

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
Downloads

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

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