There are 2 common methods to make a plot using and gnuplot (http://www.gnuplot.info): Create a gnuplot control file using 's ...
This is an example of a project structure and Makefile for a LaTeX document with gnuplot plots generated on compilation.
In these columns, I have covered several different scientific packages for doing calculations in many different areas of research.