Beispiel #1
0
    #RES = RES1
    args = {'lw':0,'marker':'x','ms':10}
    ax7.plot(SWP, [r[ID][0,1]for r in RES], label = '$\\chi_{DB}$', c = 'b', **args); ax7.set_ylabel('$\\chi_{DB}$ (MHz)');
    ax9.plot(SWP, [r[ID][0,2]for r in RES], label = '$\\chi_{DC}$', c = 'g', **args); ax9.set_ylabel('$\\chi_{DC}$ (MHz)');
    ax8.plot(SWP, [r[ID][1,2]for r in RES], label = '$\\chi_{BC}$', c = 'r', **args); ax8.set_ylabel('$\\chi_{BC}$ (MHz)');
    ax9.set_xlabel(swpvar); ax7.set_title('cross-Kerr');   
    #ax7.axhspan(85,150,  alpha =0.4, color= 'b')
    ax8.axhspan(5.5,6.5, alpha =0.4, color= 'b')
    ax9.axhline(0.5,     alpha =0.4, color= 'b')
    
    
#%%
if 1: # plot mesh
    fig = plt.figure(8);  fig.clf()
    tets = bba.get_convergences_max_tets()
    varsz  = bba.get_variable_vs(swpvar)
    Y = {}
    for key in tets.keys():
        Y[varsz[key]] = tets[key]
    y =  pd.Series(Y ) #.values(), index = varsz.values())
    y.plot(marker = '*', ms = 20)
    ax7t = ax7.twinx()
    ax7t.plot(y, marker = '*', ms = 10, c = 'g')
#%%
if 1:
    fig = plt.figure(21); fig.clf()
    tts = bba.get_convergences_Tets_vs_pass()
    for key, x in tts.iteritems():
        #np.log10(x).plot(label = varsz[key])
        x.plot(label = varsz[key])
    plt.legend(loc = 0)