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 9b2bdad

Browse filesBrowse files
committed
BUG: Saving normalisation result in float (explicit upcasting)
1 parent 7a65598 commit 9b2bdad
Copy full SHA for 9b2bdad

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
@@ -2116,7 +2116,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
21162116
correls = np.correlate(x, y, mode="full")
21172117

21182118
if normed:
2119-
correls /= np.sqrt(np.dot(x, x) * np.dot(y, y))
2119+
correls = correls / np.sqrt(np.dot(x, x) * np.dot(y, y))
21202120

21212121
if maxlags is None:
21222122
maxlags = Nx - 1

0 commit comments

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