Viewing data with gnuplot

Scalar Data (.sca file)

Start gnuplot with gnuplot

To plot the total energy, use the following at the gnuplot prompt

gnuplot> plot 'id.sca' using 2
To get lines rather than points on the plots, use
     gnuplot> set data style lines
     gnuplot> replot
or set data style linepoints to see both lines and points.

The following columns are the ones of interest

Correlation function (.sk and .gr)

The following will graph g(r) or S(k)
   gnuplot> set data style linespoints
   gnuplot> plot 'id.gr' 
The S(k) program also computes the error at each point, which can be plotted with
   gnuplot> plot 'id.gr'  with errorbars
Return to home page