1010mpl .rcParams ['figure.dpi' ] = 600
1111mpl .rcParams ['savefig.format' ] = "png"
1212
13- legend_size = 13
14- title_size = 16
15- tick_size = 14
16- axis_label_size = 16
17- text_box_font_size = 14
13+ legend_size = 16
14+ title_size = 22
15+ tick_size = 18
16+ axis_label_size = 20
17+ text_box_font_size = 16
1818
1919fig_width = 10
2020fig_height = 3
@@ -40,7 +40,7 @@ def commit_runtime(runtime_results: []):
4040 fig , ax = plt .subplots ()
4141 # Manually set size to adjust aspect ratio
4242 fig .set_size_inches (fig_width , fig_height )
43- ax .set_title ("Histogram of required runtimes" , fontsize = title_size )
43+ # ax.set_title("Histogram of required runtimes", fontsize=title_size)
4444 ax .hist (runtimes , bins = runtime_max + 1 , histtype = 'stepfilled' )
4545
4646 # Format the x-axis
@@ -55,14 +55,14 @@ def commit_runtime(runtime_results: []):
5555
5656 # Add annotation
5757 t = ax .annotate (f'{ runtimes_below_one :,.0f} commits require\n less than one minute.' , xy = (0 , runtimes_below_one ),
58- xytext = (5 , 70_000 ),
58+ xytext = (5 , 40_000 ),
5959 arrowprops = dict (arrowstyle = "->" ),
6060 bbox = dict (boxstyle = "round" , fc = "w" ),
6161 fontsize = text_box_font_size
6262 )
6363
6464 t = ax .annotate (f'Two commits require\n { runtime_max :,.0f} minutes.' , xy = (runtime_max , 2 ),
65- xytext = (runtime_max - 25 , 10 ),
65+ xytext = (runtime_max - 30 , 10 ),
6666 arrowprops = dict (arrowstyle = "->" ),
6767 bbox = dict (boxstyle = "round" , fc = "w" ),
6868 fontsize = text_box_font_size
0 commit comments