aboutsummaryrefslogtreecommitdiff
path: root/tests/plot_gradients
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-03-08 10:53:58 +0100
committerThomas White <taw@physics.org>2013-04-17 17:33:48 +0200
commit803336b21468042f64c27ca262248755e5ea77b9 (patch)
tree9186987ceca621779f38d2d72f2d13c48e54f9d3 /tests/plot_gradients
parentd268cf95f3fc8de4b349c429e5c24448f0e85bcb (diff)
Add script to plot gradients
Diffstat (limited to 'tests/plot_gradients')
-rwxr-xr-xtests/plot_gradients28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/plot_gradients b/tests/plot_gradients
new file mode 100755
index 00000000..b5800d07
--- /dev/null
+++ b/tests/plot_gradients
@@ -0,0 +1,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