Nucleon spectrum plot

This commit is contained in:
Nuwan Yapa 2026-09-26 00:22:10 -04:00
parent 22766ad7bc
commit e42ee2fae6
2 changed files with 8 additions and 2 deletions

@ -0,0 +1 @@
Subproject commit 4211227d6a6e437accd33a2c1ebccebc0a8b8db2

View File

@ -40,6 +40,11 @@ annotate!(κs .+ 0.3, Ebinds .+ 1, [(o, 9) for o in spec.occ])
scatter!(bench_κs, bench_Ebinds, label="benchmark"; markershape=:cross, markercolor="red") scatter!(bench_κs, bench_Ebinds, label="benchmark"; markershape=:cross, markercolor="red")
annotate!(bench_κs .+ 0.3, bench_Ebinds .- 1, [(o, 9, :red) for o in bench_occ]) annotate!(bench_κs .+ 0.3, bench_Ebinds .- 1, [(o, 9, :red) for o in bench_occ])
xlabel!("κ") # label each κ in spectroscopic notation l_j (GR renders $...$ as LaTeX)
spectroscopic(κ::Int) = "\$\\mathrm{" * "spdfghiklmno"[l_κ(κ) + 1] * "}_{" * string(Int(2 * j_κ(κ))) * "/2}\$"
tick_κs = sort(unique(Int.([κs; bench_κs])))
xticks!(tick_κs, spectroscopic.(tick_κs))
xlabel!("Orbital")
ylabel!("Binding energy (MeV)") ylabel!("Binding energy (MeV)")
yflip!() yflip!()
savefig("temp/Pb208_nucleon_spectrum.pdf")