Professor Diomar Cesar Lobao

Universidade Federal Fluminense-Volta Redonda, RJ, Brasil

Diomar Cesar


Dept. Ciências Exatas - Exact Science Dept.

Search

gp-int1

#
# This demonstrates the use of gnuplot to pick up data from the
# files linint and cubeint and plot comparisons of results
#
# To learn more about gnuplot commands enter an interactive gnuplot session
# type "help" or "help" followed by the command name (.e.g. "help set")
# The following line selects a TEKTRONICS emulation remove the # for Mac's
#set terminal tek40xx
# Uncomment the following 2 lines to make a postscript file
#set terminal postscript
#set output "plot.ps"
set title "John Mahaffy, Internal Energy"
# To include more information use the "set label" command
set xlabel "Temperature"
set ylabel "Internal Energy"
 set xrange [300:3000]
# To let gnuplot determine the range see the "set autoscale" command
set data style lines
set key 1000,2.e7
plot 'linint' using 1:3 title "Linear Interpolation",\
     'cubeint' using 1:3 t "Cubic Interpolation"
 pause -1 "Hit return to continue"
# This pause stops plots from flashing by on your screen, but
# shouldn't be used (comment out) when generating a Postscript
# file unless you remember to hit the necessary number of
# returns during the gnuplot run.
set title "John Mahaffy, Cv"
set ylabel "Specific Heat Cv"
set key 1000,6700.
plot 'linint' using 1:2 title "Linear Interpolation",\
     'cubeint' using 1:2 t "Cubic Interpolation"
Skip to content