# Cornell CS4786, Spring 2015, Profs Lee and Sridharan
# 2d-gaussian.gp
# plot 2d-gaussian data from the two set files, using gnuplot
# run on the command line with "gnuplot 2d-gaussian.gp"
# make the plot square-shaped
set size square
set xrange [-12:12]; set yrange [-12:12]
# show the x=0 and y=0 lines
set xzeroaxis; set yzeroaxis
# deal with csv data
set datafile separator ','
# use the first and second columns of 2d-gaussian.csv and 2d-gaussian-rotated.csv
plot '2d-gaussian.csv' u 1:2 title "X_I", '2d-gaussian-rotated.csv' u 1:2 title "X_II"
# get the output as a pdf file
set output '2d-gaussians.pdf'
set term pdf
replot