Update plot.py (#7654)

fix bug in issue #7650
This commit is contained in:
SylvanDing authored and GitHub committed 2022-04-30 20:01:21 -07:00
1 parent 488fb0a36a
commit 5743deb9df
1 file changed
+1 -1
+1 -1
View File
@@ -426,7 +426,7 @@ def plot_results(file='path/to/results.csv', dir=''):
s = [x.strip() for x in data.columns]
x = data.values[:, 0]
for i, j in enumerate([1, 2, 3, 4, 5, 8, 9, 10, 6, 7]):
y = data.values[:, j]
y = data.values[:, j].astype('float')
# y[y == 0] = np.nan # don't show zero values
ax[i].plot(x, y, marker='.', label=f.stem, linewidth=2, markersize=8)
ax[i].set_title(s[j], fontsize=12)