You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected that it behaves like e.g. yoda that the weights squared produce the variance/uncertainty.
The docs https://hist.readthedocs.io/en/latest/reference/hist.plot.html#hist.plot.histplot say that I can give yerr, but yerr needs to be a vector of weights squared per bin. I don't think I should have to compute that myself, if I already filled the bins with the weights unsquared!
I could not find an example for this common case in the docs.
What is the recommended/right/best way to plot in hist with weights?
Note: on the webpage there seems to be a small formatting error:
Histogram object with containing values and optionally bins. Can be:
is followed by bulletpoints, while
Histogram uncertainties. Following modes are supported:
does show dashes without newlines per case.
The text was updated successfully, but these errors were encountered:
gives with (poisson) errorbars
while
gives none
I would have expected that it behaves like e.g.
yoda
that the weights squared produce the variance/uncertainty.The docs https://hist.readthedocs.io/en/latest/reference/hist.plot.html#hist.plot.histplot say that I can give
yerr
, butyerr
needs to be a vector of weights squared per bin. I don't think I should have to compute that myself, if I already filled the bins with the weights unsquared!I could not find an example for this common case in the docs.
What is the recommended/right/best way to plot in hist with weights?
Note: on the webpage there seems to be a small formatting error:
is followed by bulletpoints, while
does show dashes without newlines per case.
The text was updated successfully, but these errors were encountered: