Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54d6992 + 33a39d4 commit 756420eCopy full SHA for 756420e
1 file changed
examples/statistics/multiple_histograms_side_by_side.py
@@ -45,8 +45,8 @@
45
46
# The bin_edges are the same for all of the histograms
47
bin_edges = np.linspace(hist_range[0], hist_range[1], number_of_bins + 1)
48
-centers = 0.5 * (bin_edges + np.roll(bin_edges, 1))[:-1]
49
heights = np.diff(bin_edges)
+centers = bin_edges[:-1] + heights / 2
50
51
# Cycle through and plot each histogram
52
fig, ax = plt.subplots()
0 commit comments