Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb60cdf

Browse filesBrowse files
committed
Minor fix for astropy units support broken in earlier PR
1 parent 9926f06 commit fb60cdf
Copy full SHA for fb60cdf

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3505,7 +3505,7 @@ def apply_mask(arrays, mask): return [array[mask] for array in arrays]
35053505
f"'{dep_axis}err' (shape: {np.shape(err)}) must be a "
35063506
f"scalar or a 1D or (2, n) array-like whose shape matches "
35073507
f"'{dep_axis}' (shape: {np.shape(dep)})") from None
3508-
res = np.zeros_like(err, dtype=bool) # Default in case of nan
3508+
res = np.zeros(err.shape, dtype=bool) # Default in case of nan
35093509
if np.any(np.less(err, -err, out=res, where=(err == err))):
35103510
# like err<0, but also works for timedelta and nan.
35113511
raise ValueError(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.