From 1b7d98d941911334ad1824c9a586055c2319541e Mon Sep 17 00:00:00 2001 From: Abodi Massarwa Date: Fri, 16 Aug 2024 20:44:29 +0300 Subject: [PATCH] minor changes --- .../heterogeneous_matroid_constraints_algorithms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py b/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py index dbea82e..d773136 100644 --- a/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py +++ b/fairpyx/algorithms/heterogeneous_matroid_constraints_algorithms.py @@ -1252,7 +1252,7 @@ def helper_generate_directed_graph_base64(graph, seed=42,category:str='',iterati plt.figure() plt.title('Envy Graph',fontsize=16) additional_text=f'category -> {category} iteration -> {iteration}' - plt.figtext(0.5, 0.90, additional_text, wrap=True, horizontalalignment='center', fontsize=10) + plt.figtext(0.5, 0.85, additional_text, wrap=True, horizontalalignment='center', fontsize=10) pos = nx.spring_layout(graph, seed=seed) # Use a seed for reproducibility nx.draw(graph, pos, with_labels=True, node_color='lightblue', edge_color='gray', node_size=500, font_size=10, arrows=True) @@ -1271,7 +1271,7 @@ def helper_generate_bipartite_graph_base64(graph,iteration:int,category:str): plt.figure() plt.title('Agent-Item Bipartite Graph', fontsize=16) additional_text=f'category -> {category} iteration -> {iteration}' - plt.figtext(0.5, 0.90, additional_text, wrap=True, horizontalalignment='center', fontsize=10) + plt.figtext(0.5, 0.85, additional_text, wrap=True, horizontalalignment='center', fontsize=10) try: top_nodes = {n for n, d in graph.nodes(data=True) if d['bipartite'] == 0} bottom_nodes = set(graph) - top_nodes