aboutsummaryrefslogtreecommitdiff
path: root/tests/plot_gradients
blob: b5800d070a2bfbc437000045a884de3a0ddcd862 (plain)
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
#!/bin/sh

gnuplot -persist << EOF

set key bottom right

set xlabel "Calculated gradient"
set ylabel "Observed gradient"

  plot "gradient-test-x.dat" using 1:2 w p lc 1 pt 1 title "x"
replot "gradient-test-y.dat" using 1:2 w p lc 2 pt 1 title "y"
replot "gradient-test-z.dat" using 1:2 w p lc 3 pt 1 title "z"

EOF

gnuplot -persist << EOF
set key bottom right
set xlabel "Calculated gradient"
set ylabel "Observed gradient"
plot "gradient-test-R.dat" using 1:2 w p lc 1 pt 1 title "profile radius"
EOF

gnuplot -persist << EOF
set key bottom right
set xlabel "Calculated gradient"
set ylabel "Observed gradient"
plot "gradient-test-div.dat" using 1:2 w p lc 1 pt 1 title "divergence"
EOF