Commit 15dfff73 authored by Antonino D'Anna's avatar Antonino D'Anna

silly bugs

parent 1f21ecc2
......@@ -217,6 +217,7 @@ function mpcac(a0p::Vector{uwreal}, pp::Vector{uwreal}, plat::Vector{Int64}; ca:
x = [_ for _ in eachindex(aux)]
fig,ax = plot_data(aux,x,wpm=wpm,ylabel =L"$m_\mathrm{PCAC}$",xlabel=L"$x_0$";plot_kw...)
isnothing(wpm) ? uwerr(mass) : uwerr(mass,wpm)
v,e = value(mass), err(mass);
fig,ax = plot_func(x->mass,[plat[1]:plat[2]...],figs=(fig,ax);plot_kw...)
......@@ -583,25 +584,25 @@ function dec_const(vv::Vector{uwreal}, plat::Vector{Int64}, m::uwreal, y0::Int64
x = [1:length(R)...]
lbl = string(L"$af = $", sprint(show, f))
fig,ax = plot_data(R,x,label=lbl;plot_kw...)
fig,ax = plot_func(x->R_av,x[plat[1]:plat[2]],label = L"$R$"; plot_kw...)
fig,ax = plot_func(x->R_av,x[plat[1]:plat[2]],label = L"$R$",figs=(fig,ax); plot_kw...)
v,e = value(R_av),err(R_av)
ax.set_xlim(left=y0)
ax.set_ylim(v-10*e, v+10*e)
if !haskey(plot_kw,:ylabel)
ylabel(L"$R_\mathrm{av}$")
ax.set_ylabel(L"$R_\mathrm{av}$")
end
if !haskey(plot_kw,:xlabel)
ax.xlabel(L"$x_0$")
ax.set_xlabel(L"$x_0$")
end
if !haskey(plot_kw,:title)
if !isnothing(kappa)
fig.suptitle(string( L"$\kappa_1 = $", kappa[1], L" $\kappa_2 = $", kappa[2]))
end
ax.title(L"$f_{B^*}$")
ax.set_title(L"$f_{B^*}$")
end
if savepl
......
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