Skip to content

Commit

Permalink
Update plot_rawdata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry57 authored Oct 27, 2024
1 parent 7dc4b22 commit ab3b144
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions GENetLib/plot_rawdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ab3b144

Please sign in to comment.