Skip to content
Snippets Groups Projects

allow using collection of dataframes for PdfDistributionPlot

Merged Alkaid Cheng requested to merge dev2 into master
2 files
+ 26
12
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -212,7 +212,7 @@ def get_hist_data(x:np.ndarray, weights:Optional[np.ndarray]=None,
pois_interval = get_poisson_interval(_y)
yerr = (pois_interval["lo"] / size, pois_interval["hi"] / size)
_weights = weights / size
y, bin_edges = np.histogram(x, bins=bins, range=brange, weights=_weights)
y, bin_edges = np.histogram(x, bins=bins, range=range, weights=_weights)
elif error_method == "sumw2":
_y, bin_edges = np.histogram(x, bins=bins, range=range, weights=weights**2)
_weights = weights / size
Loading