Permalink
Browse files

make convoluted plot better descernible, bring back option to disable…

… plotting of raw data
  • Loading branch information...
1 parent 3640858 commit cd264c854a7d74eb9ab82070fddbdcbe438ff957 @milianw committed Apr 19, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 plot_data.sh
View
@@ -30,9 +30,15 @@ fi
t="Spectrum for ${a[2]} 1H, ${a[3]} 14H, mwFreq = ${a[4]} GHz\\nB-Range: ${a[0]} ($steps steps) ${a[5]}$TITLE_ADD"
+pltraw="'${plt_base}conv' using 1:(\$3 == 1 ? \$2 : 1/0) w impulses notitle,";
+
+if [[ "$PLOT_NO_RAW" != "" ]]; then
+ pltraw=""
+fi
+
echo "$GNUPLOT_CMD set title \"$t\";
set xlabel 'static B-field in Tesla';
set ylabel 'intensity in a.u.';
set grid;
- plot '${plt_base}conv' using 1:(\$3 == 0 ? \$2 : 1/0) w lines notitle, \\
- '${plt_base}conv' using 1:(\$3 == 1 ? \$2 : 1/0) w impulses notitle" | gnuplot -persist
+ plot $pltraw \\
+ '${plt_base}conv' using 1:(\$3 == 0 ? \$2 : 1/0) w lines notitle lt 7" | gnuplot -persist

0 comments on commit cd264c8

Please sign in to comment.