How Do I Integrate Dataplot With My Own Fortran or C Programs?
Question: How do I integrate Dataplot with my own Fortran/C programs? We consider integration in two basic senses. • You have a Fortran program and you would like to perform some Dataplot analysis for the output of that program. Often, this just means you would like to use Dataplot to graph the data. In other cases, you would acutally like to perform some numeric analysis as well. • On the other hand, you might want to have Dataplot call your Fortran/C program to perform some analysis that is not available in Dataplot. We will discuss these separately. First, we discuss invoking Dataplot from within a Fortran program (the basic idea is similar for a C program). The basic steps are as follows: • Write a Dataplot macro to perform the desired analysis. • When you get to the part of the code where you want to invoke Dataplot, do the following: • Write out the data that Dataplot needs to one or more ASCII files. The Dataplot macro that you write will read these files. • Most Fortran compile