Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makie lhist! a plot recipe rather than a convenience function #36

Open
fhagemann opened this issue Mar 11, 2025 · 0 comments
Open

Makie lhist! a plot recipe rather than a convenience function #36

fhagemann opened this issue Mar 11, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fhagemann
Copy link
Contributor

lhist! should not create a new axis or a new legend every time it is called.
I envision a behavior as it had in LegendPlots

fig = Figure()
for (det_type, det_label) in zip([:icpc, :ppc, :bege, :coax],["ICPC", "PPC", "BEGe", "Coax"])
    values = [reduce(getproperty, properties, init = pars[det]) for det in chinfo.detector[chinfo.det_type .== det_type]]   
    lhist!(values, bins = 0:0.1:10, label = det_label, xlabel = "ΔE@Qββ")
end
axislegend(position = :rt)
LegendMakie.add_watermarks!()
fig

Image

@fhagemann fhagemann self-assigned this Mar 11, 2025
@fhagemann fhagemann added the enhancement New feature or request label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant