plotting typo fixed

This commit is contained in:
2022-10-24 19:10:08 +02:00
parent 829ce66221
commit 2f9169586c

View File

@@ -43,10 +43,6 @@ def ju_patch_less_verbose(ju_module):
ju_patch_less_verbose(ju)
def plot_correlation(x, y, ax=None, **ax_kwargs):
"""
Plots the correlation of x and y in a normalized scatterplot.
@@ -62,7 +58,7 @@ def plot_correlation(x, y, ax=None, **ax_kwargs):
xnorm = (x - np.mean(x)) / xstd
ynorm = (y - np.mean(y)) / ystd
n = len(ys)
n = len(y)
r = 1 / (n) * sum(xnorm * ynorm)