plotting typo fixed
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user