예제 #1
0
def plot(save=False):
    shell.close('all')
    x = fetch()  #.reshape((len(tau),4))
    x1 = x[0]
    x2 = x[1]
    shell.figure()
    shell.plot(tau, x1)
    shell.hold(True)
    shell.plot(tau, x2, "b-")
    #fitPoints = hahnFit( tau,x1)
    #shell.plot(tau,fitPoints(tau), "r-")
    shell.xtitle('tau [ns]')
    shell.ytitle('counts [a.u.]')

    shell.figure(title='ratio')
    shell.plot(tau, x[0] / x[1])
    shell.xtitle('tau [ns]')
    shell.ytitle('normalized fluorescence [a.u.]')

    shell.figure(title='difference')
    shell.plot(tau, x[0] - x[1])
    if save:
        np.savetxt("BP/Results/hahn1.txt", x1)
        np.savetxt("BP/Results/hahn2.txt", x2)
        np.savetxt("BP/Results/hahnTau.txt", tau)
예제 #2
0
def plot():
    shell.close('all')
    x = fetch()  #.reshape((len(tau),4))
    shell.figure()
    shell.plot(tau, x)
    fitPoints = hahnFit(tau, x)
    shell.plot(tau, fitPoints(tau), "r-")
    shell.xtitle('tau [ns]')
    shell.ytitle('counts [a.u.]')
예제 #3
0
def plot(save=False):
    shell.close('all')
    x = fetch()  #.reshape((len(tau),4))
    shell.figure()
    shell.plot(x, "k.")
    shell.xtitle('tau [ns]')
    shell.ytitle('counts [a.u.]')
    if save:
        np.savetxt("BP/Results/deutsch.txt", x)
예제 #4
0
def plot():
    shell.close('all')
    x=fetch().reshape((len(tau),4))
    shell.plot(tau,x[:,0],'-b')
    shell.hold(True)
    shell.plot(tau,x[:,1],'-r')
    shell.plot(tau,x[:,2],'-g')
    shell.plot(tau,x[:,3],'-c')
    

    
예제 #5
0
def plot(save=False):
    shell.close('all')
    x = fetch()  #.reshape((len(tau),4))
    shell.figure()
    shell.plot(tau, x)
    shell.hold(True)
    fitPoints = rabiFit(tau, x)
    shell.plot(tau, fitPoints(tau), "r-")
    shell.xtitle('tau [ns]')
    shell.ytitle('counts [a.u.]')
    if save:
        np.savetxt("BP/Results/Rabi.txt", x)
        np.savetxt("BP/Results/RabiTau.txt", tau)
        np.savetxt("BP/Results/RabiFit.txt", fitPoints(tau))