set output "exp1.tex" set encoding utf8 set terminal epslatex color font "Arial,11" fontscale 1.0 size 12cm,8cm set style data lines set style line 1 linetype 1 linewidth 1 linecolor rgb "magenta" set style line 2 linetype 1 linewidth 1 linecolor rgb "blue" set style line 3 linetype 3 linewidth 1 linecolor rgb "green" set style line 91 linetype 1 linewidth 1 linecolor rgb "black" set style line 92 linetype 1 linewidth 0.5 linecolor rgb "gray20" set style line 93 linetype 1 linewidth 0.5 linecolor rgb "gray60" set style textbox 2 opaque fc "light-blue" set border ls 91 set grid xtics ls 92, ls 93 set grid ytics ls 92, ls 93 set xtics 0, 3, 10 set xrange [0:10] set yrange [0:10] set key top left Left reverse set xlabel "Supply Voltage (V)" set ylabel "Current (mA)" offset 1.0 set errorbars 3 front linewidth 2 plot \ x linetype 1 title "", \ x / 2.2 linetype 2 title "", \ x / 3.3 linetype 3 title "", \ 'exp1-theory.dat' using 1:($2 * 1000):($3 * 1000):($4 * 1000) linetype 1 linewidth 2 title "Theory (1.0k Ohm)" with yerrorbars, \ 'exp1-result.dat' using 1:($2 * 1000) title "Result (1.0k Ohm)" with points, \ 'exp1-theory.dat' using 5:($6 * 1000):($7 * 1000):($8 * 1000) linetype 2 linewidth 2 title "Theory (2.2k Ohm)" with yerrorbars, \ 'exp1-result.dat' using 3:($4 * 1000) title "Result (2.2k Ohm)" with points, \ 'exp1-theory.dat' using 9:($10 * 1000):($11 * 1000):($12 * 1000) linetype 3 linewidth 2 title "Theory (3.3k Ohm)" with yerrorbars, \ 'exp1-result.dat' using 5:($6 * 1000) title "Result (3.3k Ohm)" with points #set multiplot layout 2,2 rowsfirst spacing 0.05 # #set xlabel "Supply Voltage (V)" #set ylabel "Current (mA)" offset 1.0 # #set label "1.0k Ohm" at graph 0.05,0.9 left boxed bs 2 front #plot 'exp1-theory.dat' using 1:($2 * 1000):($3 * 1000):($4 * 1000) linetype 1 title "Theory" with yerrorlines, \ #'exp1-result.dat' using 1:($2 * 1000) title "Result" with points #unset label #set label "2.2k Ohm" at graph 0.05,0.9 left boxed bs 2 front #plot 'exp1-theory.dat' using 5:($6 * 1000):($7 * 1000):($8 * 1000) linetype 1 title "Theory" with yerrorlines, \ #'exp1-result.dat' using 3:($4 * 1000) title "Result" with points #set origin 0.2,0 #unset label #set label "3.3k Ohm" at graph 0.05,0.9 left boxed bs 2 front #plot 'exp1-theory.dat' using 9:($10 * 1000):($11 * 1000):($12 * 1000) linetype 1 title "Theory" with yerrorlines, \ #'exp1-result.dat' using 5:($6 * 1000) title "Result" with points # #unset multiplot