Selaa lähdekoodia

Update plot.py (#7654)

fix bug in issue #7650
modifyDataloader
SylvanDing GitHub 2 vuotta sitten
vanhempi
commit
5743deb9df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      utils/plots.py

+ 1
- 1
utils/plots.py Näytä tiedosto

@@ -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)

Loading…
Peruuta
Tallenna