Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ def plot_triangle(x1, y1, x2, y2, x3, y3, I_x, I_y, Ux, Uy, G_x, G_y):
|
|
| 70 |
vertices = [(x1, y1), (x2, y2), (x3, y3)]
|
| 71 |
for i, (vx, vy) in enumerate(vertices):
|
| 72 |
ax.scatter(vx, vy, color="blue", zorder=5)
|
| 73 |
-
ax.text(vx, vy, f"
|
| 74 |
|
| 75 |
key_points = [
|
| 76 |
(I_x, I_y, "Incenter"),
|
|
|
|
| 70 |
vertices = [(x1, y1), (x2, y2), (x3, y3)]
|
| 71 |
for i, (vx, vy) in enumerate(vertices):
|
| 72 |
ax.scatter(vx, vy, color="blue", zorder=5)
|
| 73 |
+
ax.text(vx, vy, f"P{i+1} ({vx:.1f}, {vy:.1f})", fontsize=10, ha="left", va="bottom", color="blue")
|
| 74 |
|
| 75 |
key_points = [
|
| 76 |
(I_x, I_y, "Incenter"),
|