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

Histograms may not be integrating to one, and are probably better as PDFs #1173

Open
daflack opened this issue Feb 19, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@daflack
Copy link
Contributor

daflack commented Feb 19, 2025

Currently the histograms are plotted as normalised density plots (e.g. https://github.com/MetOffice/CSET/blob/main/src/CSET/operators/plot.py#L72). However, these are less flexible, and have a subtler interpretation than PDFs (which most users would be familiar with). It also leads to misleading values on the y axis (i.e. values above one) which whilst mathematically accurate can cause interpretation problems.

The idea is to make the histograms more user friendly, and more flexible, by converting them into PDFs by using the counts for each bin and then normalising by the number of elements used to make the histogram.

@daflack daflack added the enhancement New feature or request label Feb 19, 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