set output "exp1-bode.png" #load '../common.gnuplot' set terminal png unset key set key center rmargin box height 1 set log x set log y set xrange [1e2:2e6] set multiplot layout 2,1 rowsfirst set xlabel set ylabel "Impedance (Ohm)" set format x "" set format y "%.1g" plot "exp2-1_1nF-Z.txt" u 1:2 title "1nF" with points, "exp2-1_100uF-Z.txt" u 1:2 title "100uF" with points unset log y set xtics add ("1k" 1e3, "10k" 1e4, "100k" 1e5, "1M" 1e6) set yrange [-30:120] set ytics 30 set xlabel "Frequency (Hz)" set ylabel "Phase (deg)" set format y " %.0f" plot "exp2-1_1nF.txt" u 1:4 title "1nF" with points, "exp2-1_100uF.txt" u 1:4 title "100uF" with points unset multiplot