Skip to content

Commit 9b2bdad

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)