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 0753a40 commit d1906fcCopy full SHA for d1906fc
proplot/axes/plot.py
@@ -1812,12 +1812,12 @@ def _distribution_range(
1812
# NOTE: Invalid values were handled by _distribution_reduce
1813
label_default = fr'{abs(stds[1])}$\sigma$ range'
1814
stds = _to_numpy_array(stds)[:, None]
1815
- err = y + stds * np.std(distribution, axis=0)
+ err = y + stds * np.nanstd(distribution, axis=0)
1816
elif pctiles is not None:
1817
# Percentiles
1818
1819
label_default = f'{pctiles[1] - pctiles[0]}% range'
1820
- err = np.percentile(distribution, pctiles, axis=0)
+ err = np.nanpercentile(distribution, pctiles, axis=0)
1821
else:
1822
raise ValueError('You must provide error bounds.')
1823
0 commit comments