Spaces:
Sleeping
Sleeping
4kasha
commited on
Commit
•
c104270
1
Parent(s):
74e96d7
init
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def create_initial_plot(grid_size):
|
|
26 |
graph_ax.set_xlim(0, 1)
|
27 |
graph_ax.set_ylim(0, 1)
|
28 |
|
29 |
-
plt.tight_layout()
|
30 |
return fig
|
31 |
|
32 |
def get_largest_cluster(grid):
|
@@ -89,7 +89,7 @@ def run_percolation_simulation(grid_size):
|
|
89 |
graph_ax.set_xlim(0, 1)
|
90 |
graph_ax.set_ylim(0, 1)
|
91 |
|
92 |
-
plt.tight_layout()
|
93 |
|
94 |
yield fig
|
95 |
|
|
|
26 |
graph_ax.set_xlim(0, 1)
|
27 |
graph_ax.set_ylim(0, 1)
|
28 |
|
29 |
+
# plt.tight_layout()
|
30 |
return fig
|
31 |
|
32 |
def get_largest_cluster(grid):
|
|
|
89 |
graph_ax.set_xlim(0, 1)
|
90 |
graph_ax.set_ylim(0, 1)
|
91 |
|
92 |
+
# plt.tight_layout()
|
93 |
|
94 |
yield fig
|
95 |
|