Spaces:
Build error
Build error
juancopi81
commited on
Commit
·
48efb3c
1
Parent(s):
99cc608
Change titles in axis
Browse files
utils.py
CHANGED
@@ -159,8 +159,8 @@ def dataframe_to_pianoroll_img(df):
|
|
159 |
ax.scatter(df.start_time, df.pitch, c="white")
|
160 |
for _, row in df.iterrows():
|
161 |
ax.add_patch(Rectangle((row["start_time"], row["pitch"]-0.4), row["duration"], 0.4, color="black"))
|
162 |
-
plt.xlabel('
|
163 |
-
plt.ylabel('MIDI
|
164 |
return fig
|
165 |
|
166 |
def fig2img(fig):
|
|
|
159 |
ax.scatter(df.start_time, df.pitch, c="white")
|
160 |
for _, row in df.iterrows():
|
161 |
ax.add_patch(Rectangle((row["start_time"], row["pitch"]-0.4), row["duration"], 0.4, color="black"))
|
162 |
+
plt.xlabel('time (sec.)', fontsize=18)
|
163 |
+
plt.ylabel('pitch (MIDI)', fontsize=16)
|
164 |
return fig
|
165 |
|
166 |
def fig2img(fig):
|