From 2f9169586c269b0295faddddb29c9a36d40d8baf Mon Sep 17 00:00:00 2001 From: Vonka Jakub Date: Mon, 24 Oct 2022 19:10:08 +0200 Subject: [PATCH] plotting typo fixed --- src/cristallina/plot.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cristallina/plot.py b/src/cristallina/plot.py index 85d2b13..4304f1a 100644 --- a/src/cristallina/plot.py +++ b/src/cristallina/plot.py @@ -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)