Spaces:
Build error
Build error
edits
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def generate_matching_superfeatures(
|
|
153 |
|
154 |
# which sf
|
155 |
sf_idx_ = [55, 14, 5, 4, 52, 57, 40, 9]
|
156 |
-
n_sf_ids =
|
157 |
if random_mode or sf_ids == '':
|
158 |
sf_idx_ = np.random.randint(256, size=n_sf_ids)
|
159 |
else:
|
@@ -239,7 +239,7 @@ def generate_matching_superfeatures(
|
|
239 |
f = lambda m,c: plt.plot([],[],marker=m, color=c, ls="none")[0]
|
240 |
handles = [f("s", col.colors[i]) for i in range(n_sf_ids)]
|
241 |
fig_leg = plt.figure(3)
|
242 |
-
legend = plt.legend(handles, sf_idx_, framealpha=1, frameon=False, facecolor='w',fontsize=
|
243 |
# fig_leg = legend.figure
|
244 |
# fig_leg.canvas.draw()
|
245 |
ax3 = plt.gca()
|
|
|
153 |
|
154 |
# which sf
|
155 |
sf_idx_ = [55, 14, 5, 4, 52, 57, 40, 9]
|
156 |
+
n_sf_ids = 10
|
157 |
if random_mode or sf_ids == '':
|
158 |
sf_idx_ = np.random.randint(256, size=n_sf_ids)
|
159 |
else:
|
|
|
239 |
f = lambda m,c: plt.plot([],[],marker=m, color=c, ls="none")[0]
|
240 |
handles = [f("s", col.colors[i]) for i in range(n_sf_ids)]
|
241 |
fig_leg = plt.figure(3)
|
242 |
+
legend = plt.legend(handles, sf_idx_, framealpha=1, frameon=False, facecolor='w',fontsize=25, loc="center")
|
243 |
# fig_leg = legend.figure
|
244 |
# fig_leg.canvas.draw()
|
245 |
ax3 = plt.gca()
|