Spaces:
Runtime error
Runtime error
Update FcgEngine/utils.py
Browse files- FcgEngine/utils.py +3 -2
FcgEngine/utils.py
CHANGED
|
@@ -19,10 +19,11 @@ def plot_self_attention_map(spectra, att_map, offset=400):
|
|
| 19 |
ax2.plot(x, spectra)
|
| 20 |
return fig
|
| 21 |
|
| 22 |
-
def plot_spectra(spectra):
|
| 23 |
fig = plt.figure()
|
|
|
|
| 24 |
# fg.title("Spectra Signal")
|
| 25 |
-
plt.plot(spectra)
|
| 26 |
return fig
|
| 27 |
|
| 28 |
def plot_result(name, score):
|
|
|
|
| 19 |
ax2.plot(x, spectra)
|
| 20 |
return fig
|
| 21 |
|
| 22 |
+
def plot_spectra(spectra, offset=400):
|
| 23 |
fig = plt.figure()
|
| 24 |
+
x = np.linspace(offset, offset + len(spectra), len(spectra))
|
| 25 |
# fg.title("Spectra Signal")
|
| 26 |
+
plt.plot(x, spectra)
|
| 27 |
return fig
|
| 28 |
|
| 29 |
def plot_result(name, score):
|