Explorar el Código

Update plot.py (#7654)

fix bug in issue #7650
modifyDataloader
SylvanDing GitHub hace 2 años
padre
commit
5743deb9df
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      utils/plots.py

+ 1
- 1
utils/plots.py Ver fichero

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

Cargando…
Cancelar
Guardar