creating graphs in postscript format from Fortran

beliavsky_at_aol.com
Date: 12/20/03


Date: 19 Dec 2003 18:12:30 -0800

What libraries with free source code in Fortran or C exist for
creating simple graphs in postscript format from a Fortran program?
What I do now is write text files from my code and plot with Gnuplot
(which can create PS files).

I know of the Fortran 77 program PSDRAW, whose source was posted to
comp.lang.fortran (in 1990!). I compiled it and am able to make
black-and-white 2D line graphs. But color and 3D graphics would be
nice. (There is one syntax error in the code -- in file pstrip.f, the
third line, with text "external pspvals", is mistakenly repeated.) The
interface is very simple -- basically "call psplot(x,y)" creates a
line graph of y vs. x, with automatic scaling of axes. Optional
parameters such as the title of the graph, tick size etc. are passed
in a common block.

DISLIN is free for some, but not all platforms. I don't think the
source code is public domain.

PSPLOT provides some primitives for Postscript graphics, but to quote
the site,
it is not "A pushbutton graphics library. That is, you can't create a
graph with a single call."