Difference between revisions of "Gnuplot: Plotting graphs"
Jump to navigation
Jump to search
(Created page with "Simple example plotting the performance of gromacs. Two files each with two columns (step / ns/day). Commands below plot the performance over execution time. <syntaxhighlight> gnuplot> ...") |
|||
| Line 7: | Line 7: | ||
gnuplot> set ylabel "ns/day" | gnuplot> set ylabel "ns/day" | ||
gnuplot> plot 'amd.gunplot.dat' using 1:2 title "AMD 6274", './intel.gnuplot.dat' using 1:2 title "Intel E5-2670" | gnuplot> plot 'amd.gunplot.dat' using 1:2 title "AMD 6274", './intel.gnuplot.dat' using 1:2 title "Intel E5-2670" | ||
| + | gnuplot> set terminal postscript portrait enhanced color dashed lw 1 "DejaVuSans" 12 | ||
| + | Terminal type set to 'postscript' | ||
| + | Options are 'portrait enhanced defaultplex \ | ||
| + | leveldefault color colortext \ | ||
| + | dashed dashlength 1.0 linewidth 1.0 butt noclip \ | ||
| + | palfuncparam 2000,0.003 \ | ||
| + | "DejaVuSans" 12 ' | ||
| + | gnuplot> set output "gromacs-graph.ps" | ||
| + | gnuplot> replot | ||
| + | gnuplot> exit | ||
| + | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:32, 30 July 2012
Simple example plotting the performance of gromacs. Two files each with two columns (step / ns/day). Commands below plot the performance over execution time.
gnuplot> title "AMD 6272 ns/day"
gnuplot> set title "Hinditron Gromacs Tests"
gnuplot> set xlabel "Step"
gnuplot> set ylabel "ns/day"
gnuplot> plot 'amd.gunplot.dat' using 1:2 title "AMD 6274", './intel.gnuplot.dat' using 1:2 title "Intel E5-2670"
gnuplot> set terminal postscript portrait enhanced color dashed lw 1 "DejaVuSans" 12
Terminal type set to 'postscript'
Options are 'portrait enhanced defaultplex \
leveldefault color colortext \
dashed dashlength 1.0 linewidth 1.0 butt noclip \
palfuncparam 2000,0.003 \
"DejaVuSans" 12 '
gnuplot> set output "gromacs-graph.ps"
gnuplot> replot
gnuplot> exit