From 803336b21468042f64c27ca262248755e5ea77b9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 8 Mar 2013 10:53:58 +0100 Subject: Add script to plot gradients --- tests/plot_gradients | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 tests/plot_gradients 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 -- cgit v1.2.3