Skip to content

Commit

Permalink
Update plot.py (ultralytics#7654)
Browse files Browse the repository at this point in the history
fix bug in issue ultralytics#7650
  • Loading branch information
sylvanding authored and tdhooghe committed Jun 10, 2022
1 parent 83c1961 commit 246d775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 246d775

Please sign in to comment.