From 18be62c94f41f32263f702444a1acc4929f2be7b Mon Sep 17 00:00:00 2001 From: remy <remy.dernat@umontpellier.fr> Date: Mon, 25 Nov 2019 16:39:04 +0100 Subject: [PATCH] sys was not imported --- orthofinder/scripts/scnorm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/orthofinder/scripts/scnorm.py b/orthofinder/scripts/scnorm.py index 4b482ab..6d8b448 100644 --- a/orthofinder/scripts/scnorm.py +++ b/orthofinder/scripts/scnorm.py @@ -31,6 +31,7 @@ import numpy as np import matplotlib as mpl # install mpl.use('Agg') import matplotlib.pyplot as plt # install +import sys counter=0 @@ -103,13 +104,13 @@ class scnorm: @staticmethod def DrawLogLinear(params, x): global counter + f = [] global f nbvals=10000 maxBS=2500 minBS=0 x = np.linspace(minBS, maxBS, nbvals) - plt.plot(x, scnorm.loglinear(x, *params), label='species '+str(counter)) - f = plt.plot(x, scnorm.loglinear(x, *params), label='species '+str(counter)) + f.append(plt.plot(x, scnorm.loglinear(x, *params), label='species '+str(counter))) plt.legend() plt.xlabel('Bits Scores') plt.ylabel('Normalized Scores') -- GitLab