f=50
i12(t)=1*sin(2.0*pi*f*t/1000)
i13(t)=0.5*sin(2.0*pi*f*(t/1000-6.6666666666667))
set xrange[0:30]
set yrange[-2:2]
set title 'Ströme im Zeitbereich'
set xlabel 'Zeit/ms'
set ylabel 'i/A'
set terminal qt
set dummy t
#set ytics 0.05
set xtics 1.666666 rotate
set format x "%2.1f"
set grid
set term jpeg size 800,600
set output 'phasen.jpg'

plot i12(t) lt rgb "red" lw 3, i13(t) lt rgb "green" lw 3, i12(t)-i13(t) lt rgb "blue" lw 3
