Tuesday, May 11, 2010

Gnuplot

The following set of commands will plot two data series in a file using point markers and also write the output to a eps file and further convert it to pdf. You can write these commands into a text file and run gnuplot ($ gnuplot fname) on that file.
set datafile separator ","

set xlabel "value"
set ylabel "probability"


plot "dist.csv" using 1:2
#plot "1000_100_uniform.csv" using 1:1 title "Lin",  "1000_100_uniform.csv" using 1:2 title "Cosine" with points


set terminal postscript eps enhanced color solid rounded
set output "plot.eps"
!epstopdf plot.eps
replot
show output
pause -1


No comments:

Post a Comment

Continuously monitor GPU usage

 For nvidia GPUs do the follwing: nvidia-smi -l 1