-
Notifications
You must be signed in to change notification settings - Fork 0
/
pi.gp
44 lines (36 loc) · 850 Bytes
/
pi.gp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#gnuplot program to plot vector output from pi.cc
#to plot from command line type gnuplot -e "f='data/.....dat'" pi.gp
#where the .... denotes the relevant filename
#plots real next to imaginary parts
#if you want to save directly to a file, use the following two lines of code
#set terminal postscript eps color enhanced size 10,5
#set output 'figure.eps';
set multiplot layout 1, 2 title "phi(x,t)";
set xtics rotate
set bmargin 5
unset log
unset label
unset key
set autoscale
set xtic auto
set ytic auto
set title "re(phi)"
set xlabel "x"
set ylabel "t"
set zlabel "re(phi)"
set grid
splot f using 3:($2-$1):5 with points
unset log
unset label
unset key
set autoscale
set xtic auto
set ytic auto
set title "im(phi)"
set xlabel "x"
set ylabel "t"
set zlabel "im(phi)"
set grid
splot f using 3:($2-$1):6 with points
unset multiplot
pause -1