8000
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 0873285 + fb60cdf commit 79f28ecCopy full SHA for 79f28ec
lib/matplotlib/axes/_axes.py
@@ -3505,7 +3505,7 @@ def apply_mask(arrays, mask): return [array[mask] for array in arrays]
3505
f"'{dep_axis}err' (shape: {np.shape(err)}) must be a "
3506
f"scalar or a 1D or (2, n) array-like whose shape matches "
3507
f"'{dep_axis}' (shape: {np.shape(dep)})") from None
3508
- res = np.zeros_like(err, dtype=bool) # Default in case of nan
+ res = np.zeros(err.shape, dtype=bool) # Default in case of nan
3509
if np.any(np.less(err, -err, out=res, where=(err == err))):
3510
# like err<0, but also works for timedelta and nan.
3511
raise ValueError(
0 commit comments