Commit 0fdb2027 authored by Nicolas Nunez Barreto's avatar Nicolas Nunez Barreto
parents 6ad096de f0723a27
......@@ -535,8 +535,8 @@ fig.align_ylabels([ax_central,ax_res])
fig.tight_layout()
fig.savefig('grafico_central_opcion_A.png', dpi=300)
fig.savefig('grafico_central_opcion_A.pdf')
# fig.savefig('grafico_central_opcion_A.png', dpi=300)
# fig.savefig('grafico_central_opcion_A.pdf')
......@@ -559,6 +559,12 @@ plt.rcParams['text.usetex']=True
# fig.set_constrained_layout_pads(w_pad=2/72, h_pad=2/72, hspace=0, wspace=0)
voltages_dcA = Voltages[0][SelectedCurveVec]*4
## Layout ###########################
from matplotlib import gridspec
figsize=(8.6/2.54*2,4)
......@@ -654,7 +660,7 @@ axx[1,2].set_ylabel('Counts')
I = slice(None,9)
par_inicial = (12,1,-0.13)
param,pcov = curve_fit(hiperbola2,voltages_dcA[I],Betas_vec[I],p0=par_inicial)
x_hip = np.linspace(-0.23,0.005,200)
x_hip = np.linspace(-0.23*4,0.005,200)
EST=estadistica(voltages_dcA[I],Betas_vec[I],hiperbola2,pcov,param,nombres=None,alpha=0.05)
print_estadistica(EST)
......@@ -666,7 +672,7 @@ ax.errorbar(voltages_dcA[I],Betas_vec[I],yerr=ErrorBetas_vec[I],fmt='o',
ax.plot(x_hip,hiperbola2(x_hip,*param),color='C0', label=r'hyperbola model')
ax.set_ylabel(r'Modulation factor $\beta$', labelpad=-5)
ax.set_ylim(-0.05,3)
ax.set_xlim(-0.22,0)
ax.set_xlim(-0.22*4,0)
ax.set_title(f'(h)', x=0.95, y=0.006, color='gray')
ax = ax_res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment