From ab3b144fb44bf5db89d448095edba1f83d120eee Mon Sep 17 00:00:00 2001 From: Barry57 <160387047+Barry57@users.noreply.github.com> Date: Mon, 28 Oct 2024 02:48:06 +0800 Subject: [PATCH] Update plot_rawdata.py --- GENetLib/plot_rawdata.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/GENetLib/plot_rawdata.py b/GENetLib/plot_rawdata.py index fcd70c0..bbe40d8 100644 --- a/GENetLib/plot_rawdata.py +++ b/GENetLib/plot_rawdata.py @@ -13,15 +13,6 @@ def plot_rawdata(location, X, color = None, pch = 4, cex = 0.9): plt.plot(location, X.T, marker=type_, markersize=pch, label='X') else: plt.plot(location, X.T, marker=type_, markersize=pch, color=color, label='X') - else: - location_list = [location[i][~np.isnan(X[i, :])] for i in range(n)] - X_list = [X[i, ~np.isnan(X[i, :])] for i in range(n)] - if color is None: - for i in range(n): - plt.plot(location_list[i], X_list[i], marker=type_, markersize=pch, label=f'X{i+1}') - else: - for i in range(n): - plt.plot(location_list[i], X_list[i], marker=type_, markersize=pch, color=color, label=f'X{i+1}') plt.xlabel("Location") plt.ylabel("X") plt.legend()