Skip to content
Snippets Groups Projects
Commit d9336830 authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

update plot topology

parent 65e3060f
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@ class GraphGenerator:
for u, v in G.edges:
if "pc_" in u and "ui_" in v or "pc_" in v and "ui_" in u:
G[u][v]["weight"] = 27.0 # Strong pull
G[u][v]["weight"] = 20.0 # Strong pull
elif "ub_" in v and "ui_" in u or "ui_" in v and "ub_" in u:
G[u][v]["weight"] = 3.0 # Strong pull
G[u][v]["weight"] = 10.0 # Strong pull
else:
G[u][v]["weight"] = 1.0 # Default pull
......@@ -103,6 +103,7 @@ class GraphGenerator:
plt.grid(True, linestyle="--", alpha=0.5)
plt.axhline(0, color="black", linewidth=0.5, alpha=0.7)
plt.axvline(0, color="black", linewidth=0.5, alpha=0.7)
plt.gca().invert_yaxis()
plt.legend()
plt.tight_layout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment