Spaces:
Sleeping
Sleeping
Update pages/1_Company-Expansion.py
Browse files
pages/1_Company-Expansion.py
CHANGED
@@ -41,9 +41,14 @@ while True:
|
|
41 |
G.add_edges_from(current_interactions)
|
42 |
|
43 |
# Draw the graph
|
44 |
-
plt.figure(figsize=(14, 10))
|
|
|
|
|
|
|
|
|
|
|
45 |
pos = nx.spring_layout(G) # Using spring layout to better display the graph
|
46 |
-
nx.draw(G, pos, with_labels=True, node_size=3000, node_color="skyblue", font_size=20, font_weight="bold", arrows=True)
|
47 |
plt.title(f'Key Roles Interaction in an Investment Firm\nValue Add: {current_value_add}', fontsize=30)
|
48 |
|
49 |
# Display the graph
|
|
|
41 |
G.add_edges_from(current_interactions)
|
42 |
|
43 |
# Draw the graph
|
44 |
+
# plt.figure(figsize=(14, 10))
|
45 |
+
|
46 |
+
plt.figure(figsize=(8, 6)) # Smaller figure size
|
47 |
+
pos = nx.spring_layout(G, k=0.5) # Adjusted layout parameters
|
48 |
+
nx.draw(G, pos, with_labels=True, node_size=1500, node_color="skyblue", font_size=10, font_weight="bold", arrows=True)
|
49 |
+
|
50 |
pos = nx.spring_layout(G) # Using spring layout to better display the graph
|
51 |
+
# nx.draw(G, pos, with_labels=True, node_size=3000, node_color="skyblue", font_size=20, font_weight="bold", arrows=True)
|
52 |
plt.title(f'Key Roles Interaction in an Investment Firm\nValue Add: {current_value_add}', fontsize=30)
|
53 |
|
54 |
# Display the graph
|