@@ -381,7 +381,7 @@ def create_combined_horizontal_bar_chart(data_by_distribution, output_file):
381381
382382 # Configure Y-axis
383383 ax .set_yticks (y_ticks )
384- ax .set_yticklabels (y_labels , fontsize = 15 )
384+ ax .set_yticklabels (y_labels , fontsize = 15 , rotation = 45 )
385385
386386 # Configure X-axis - use fewer ticks to avoid overlap
387387 ax .set_xlabel ("Hit Ratio (%)" , fontsize = 13 )
@@ -506,9 +506,9 @@ def create_combined_horizontal_bar_chart(data_by_distribution, output_file):
506506 )
507507
508508 # Add legend at bottom center (below both subplots)
509- fig .legend (handles = legend_handles , loc = 'lower center' , fontsize = 10 ,
510- ncol = 4 , frameon = True , fancybox = True , shadow = True ,
511- bbox_to_anchor = (0.5 , 0.01 ), columnspacing = 1.0 )
509+ fig .legend (handles = legend_handles , loc = 'lower center' , fontsize = 14 ,
510+ ncol = 2 , frameon = True , fancybox = True , shadow = True ,
511+ bbox_to_anchor = (0.5 , - 0.08 ), columnspacing = 1.0 )
512512
513513 plt .savefig (output_file , dpi = 300 , bbox_inches = 'tight' )
514514 print (f"Saved: { output_file } " )
0 commit comments