GNUFOR
a GNUPLOT / FORTRAN90 interface


GNUFOR is a simple FORTRAN90 interface to the GNUPLOT plotting software.

GNUFOR makes it possible, while running a FORTRAN90 program on a UNIX system, to generate some data and request an immediate plot. This is done by issuing a SYSTEM command that starts up GNUPLOT, and feeding it the appropriate commands and data. The FORTRAN90 program pauses while the graph is displayed in an X window, and the user can admire the plots for a while, before hitting return and giving control back to the FORTRAN90 program.

Thanks to some suggestions of Morag Am-Shallem, the FORTRAN90 program can continue execution without waiting for GNUPLOT. In this way, for example, a program that was computing some quantity can, from time to time, display an updated plot of what it is doing. A user can glance at the picture from time to time, while the FORTRAN90 program merrily computes away. Something like this can be done with a C program that calls the GNUPLOT_I package.

To use this program, the command "gnuplot" must be in your path.

Reference:

  1. Philipp Janert,
    Gnuplot in Action: Understanding Data with Graphs,
    Manning, 2008,
    ISBN: 1-933988-39-8.
  2. Thomas Williams, Colin Kelley, John Campbell, David Kotz, Russell Lang,
    gnuplot, An Interactive Plotting Program,
    The Free Software Foundation, 1990,
    ../../pdf/gnuplot.pdf.
  3. http://www.gnuplot.info/, the GNUPLOT Website.

Source Code:

Examples and Tests:

You may copy the data files and command files that are created by running GNUFOR_PRB:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 17 October 2007.