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 9926f06 commit fb60cdfCopy full SHA for fb60cdf
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