@@ -127,13 +127,13 @@ def plot_cci(graph, colors, plt_name, coords, pg, emax=None, leg=False, low=25,
127127 min_pg , max_pg = min (pg ), max (pg )
128128 legend1 = ax .legend (loc = 'lower left' , title = "Pagerank" ,
129129 handles = [plt .Line2D ([], [], linestyle = '' , marker = 'o' , markersize = v / vfactor , markerfacecolor = 'black' , markeredgecolor = 'none' ) for v in [min_pg , (min_pg + max_pg ) / 2 , max_pg ]],
130- labels = [round (min_pg , 2 ), round ((min_pg + max_pg ) / 2 , 2 ), round (max_pg , 2 )], bbox_to_anchor = (0.8 , 0 ))
130+ labels = [round (min_pg , 2 ), round ((min_pg + max_pg ) / 2 , 2 ), round (max_pg , 2 )], bbox_to_anchor = (0.95 , 0.3 ))
131131
132132 # Thickness legend
133133 non_zero_inter_edges = [d ['inter' ] for _ , _ , d in graph .edges (data = True ) if d .get ('inter' , 0 ) != 0 ]
134134 if non_zero_inter_edges :
135135 e_wid_sp = [round (min (non_zero_inter_edges ), 2 ), round (min (non_zero_inter_edges ) + (emax / 2 ), 2 ), round (emax , 2 )]
136- legend2 = ax .legend (e_wid_sp , title = 'Percentage of \n the interactions' , title_fontsize = 'small' , loc = 'upper left' , bbox_to_anchor = (0.8 , 0.4 ))
136+ legend2 = ax .legend (e_wid_sp , title = 'Percentage of \n the interactions' , title_fontsize = 'small' , loc = 'upper left' , bbox_to_anchor = (0.95 , 0.7 ))
137137
138138 ax .add_artist (legend1 )
139139 ax .set_title (plt_name )
0 commit comments