Exemple #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)
Exemple #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.]')
Exemple #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)
Exemple #4
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))
 def test_script(self):
     x = linspace(-2*pi, 2*pi, 100)
     y = sin(x)
     plot(x, y, "r-")
     title("First plot")
     ytitle("sin(x)")
Exemple #6
0
 def test_script(self):
     x = linspace(-2*pi, 2*pi, 100)
     y = sin(x)
     plot(x, y, "r-")
     title("First plot")
     ytitle("sin(x)")