I recommend the program gnuplot for this
http://www.gnuplot.info/
Here is a simple example of where I use gnuplot from Fortran to plot some data:
Here are some videos on how to use gnuplot with Fortran