Commit 0012cf43 by Alessandro

plots modification in juobs_obs
 ... ... @@ -331,6 +331,9 @@ function dec_const(vv::Vector{uwreal}, plat::Vector{Int64}, m::uwreal, y0::Int64 R_av = plat_av(R, plat, wpm) f = sqrt(2 / m) * R_av if pl R .*= sqrt.(2 ./ [m for i in 1:length(R)]) uwerr.(R) R_av *= sqrt(2/m) isnothing(wpm) ? uwerr(R_av) : uwerr(R_av, wpm) isnothing(wpm) ? uwerr(f) : uwerr(f, wpm) x = 1:length(R) ... ... @@ -344,24 +347,29 @@ function dec_const(vv::Vector{uwreal}, plat::Vector{Int64}, m::uwreal, y0::Int64 fill_between(plat[1]:plat[2], v-e, v+e, color="green", alpha=0.75, label=L"$R$") errorbar(x, y, dy, fmt="x", color="black", label=lbl) legend() ylabel(L"$R_\mathrm{av}$") xlim(y0, y0 +plat[2] +15) ylim(v-10*e, v+10*e) ylabel(L"$af_{B}$") #ylabel(L"$R_\mathrm{av}$") xlabel(L"$x_0$") #title(L"$f_{B^*}$") if !isnothing(kappa) title(string(L"$\kappa_1 =$", kappa[1], L" $\kappa_2 =$", kappa[2])) title(string( L"$\kappa_1 =$", kappa[1], L" $\kappa_2 =$", kappa[2])) end display(gcf()) #t = "ps_decay_$(kappa[1])_$(kappa[2]).pdf" #savefig(joinpath("/Users/ale/Il mio Drive/phd/secondment/3pf test/analysis/plots",t)) end if !data return f else return (f, R) return f, R end end function dec_const(vv::Corr, plat::Vector{Int64}, m::uwreal; pl::Bool=true, data::Bool=false, wpm::Union{Dict{Int64,Vector{Float64}},Dict{String,Vector{Float64}}, Nothing}=nothing) return dec_const(vv.obs, plat, m, vv.y0, kappa=vv.kappa, pl=pl, data=data, wpm=wpm) return dec_const(vv.obs, plat, m, vv.y0+1, kappa=vv.kappa, pl=pl, data=data, wpm=wpm) end @doc raw""" ... ...