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.
1 parent 2262d53 commit c4dee7aCopy full SHA for c4dee7a
1 file changed
lib/matplotlib/cbook.py
@@ -1965,8 +1965,8 @@ def _bootstrap_median(data, N=5000):
1965
M = len(data)
1966
percentiles = [2.5, 97.5]
1967
1968
- ii = np.random.randint(M, size=(N, M))
1969
- bsData = x[ii]
+ bs_index = np.random.randint(M, size=(N, M))
+ bsData = data[bs_index]
1970
estimate = np.median(bsData, axis=1, overwrite_input=True)
1971
1972
CI = np.percentile(estimate, percentiles)
0 commit comments