Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def format_zero(val):
|
|
| 89 |
return val
|
| 90 |
|
| 91 |
# Function to plot the triangle with all points in different colors and a legend
|
| 92 |
-
def plot_triangle(x1, y1, x2, y2, x3, y3, I_x, I_y,
|
| 93 |
fig, ax = plt.subplots(figsize=(8, 6))
|
| 94 |
triangle = Polygon([(x1, y1), (x2, y2), (x3, y3)], closed=True, edgecolor='b', facecolor='lightblue')
|
| 95 |
ax.add_patch(triangle)
|
|
|
|
| 89 |
return val
|
| 90 |
|
| 91 |
# Function to plot the triangle with all points in different colors and a legend
|
| 92 |
+
def plot_triangle(x1, y1, x2, y2, x3, y3, I_x, I_y, U_x, U_y, G_x, G_y, midpoints):
|
| 93 |
fig, ax = plt.subplots(figsize=(8, 6))
|
| 94 |
triangle = Polygon([(x1, y1), (x2, y2), (x3, y3)], closed=True, edgecolor='b', facecolor='lightblue')
|
| 95 |
ax.add_patch(triangle)
|