Update my_pages/ica.py
Browse files- my_pages/ica.py +2 -2
my_pages/ica.py
CHANGED
|
@@ -102,14 +102,14 @@ def render():
|
|
| 102 |
|
| 103 |
torch_radius = 0.177 # how far the "torch" illuminates
|
| 104 |
|
| 105 |
-
text_to_show = "Explanations
|
| 106 |
# Illuminate nearby points
|
| 107 |
for (x, y, label, labeltext, ha, va) in locations:
|
| 108 |
dist = np.linalg.norm([x - point[0], y - point[1]])
|
| 109 |
if dist <= torch_radius:
|
| 110 |
ax.scatter(x, y, c="red", s=50, zorder=6)
|
| 111 |
ax.text(x, y + 0.03, label, ha=ha, va=va, color="red", zorder=6)
|
| 112 |
-
text_to_show += label + ": " + labeltext + "
|
| 113 |
else:
|
| 114 |
ax.scatter(x, y, c="red", s=50, zorder=6, alpha=0.3)
|
| 115 |
|
|
|
|
| 102 |
|
| 103 |
torch_radius = 0.177 # how far the "torch" illuminates
|
| 104 |
|
| 105 |
+
text_to_show = "Explanations<br>"
|
| 106 |
# Illuminate nearby points
|
| 107 |
for (x, y, label, labeltext, ha, va) in locations:
|
| 108 |
dist = np.linalg.norm([x - point[0], y - point[1]])
|
| 109 |
if dist <= torch_radius:
|
| 110 |
ax.scatter(x, y, c="red", s=50, zorder=6)
|
| 111 |
ax.text(x, y + 0.03, label, ha=ha, va=va, color="red", zorder=6)
|
| 112 |
+
text_to_show += label + ": " + labeltext + "<br>"
|
| 113 |
else:
|
| 114 |
ax.scatter(x, y, c="red", s=50, zorder=6, alpha=0.3)
|
| 115 |
|