@@ -20,9 +20,9 @@ class GroundingValidationPlotter:
2020 ytick_label_fontsize = 14
2121 xtick_label_fontsize = 12
2222 in_bar_number_fontsize = 12
23- in_bar_number_fontweight = "normal "
23+ in_bar_number_fontweight = "bold "
2424 total_number_fontsize = 12
25- total_number_fontweight = "normal "
25+ total_number_fontweight = "bold "
2626
2727 # Spacing parameters
2828 bar_height = 0.8 # Height of each bar (higher = less space between bars)
@@ -78,7 +78,7 @@ def __init__(self, df: pd.DataFrame):
7878
7979 # Create figure with 3 subplots sharing y-axis
8080 fig_height = self .n_models * self .figure_height_per_model
81- self .fig , self .axes = plt .subplots (1 , 3 , figsize = (16 , fig_height ), sharey = True )
81+ self .fig , self .axes = plt .subplots (1 , 3 , figsize = (13 , fig_height ), sharey = True )
8282 self .y_positions = np .arange (self .n_models )
8383
8484 def _get_l_reason_breakdown (self , row ) -> str :
@@ -175,7 +175,7 @@ def plot_grounding_analysis(self):
175175 self .y_positions ,
176176 motivated_by_logs ,
177177 self .bar_height ,
178- label = "Analysis of previous round" ,
178+ label = "Analysis of prev. round" ,
179179 alpha = alpha_logs ,
180180 color = color_logs ,
181181 )
@@ -195,15 +195,15 @@ def plot_grounding_analysis(self):
195195 self ._add_total_bar_labels (ax , totals )
196196
197197 ax .set_title (
198- "$ \\ bf{ (a)\\ Groundedness\\ of\\ edits}$ \n Are edits to the player file \n grounded in analysis or test results? " ,
198+ "(a) Groundedness of edits" ,
199199 fontsize = self .title_fontsize ,
200- fontweight = "normal " ,
200+ fontweight = "bold " ,
201201 pad = self .title_pad ,
202202 )
203- ax .legend (loc = "upper right" , fontsize = self .legend_fontsize , frameon = False )
203+ ax .legend (loc = "upper right" , bbox_to_anchor = ( 1.2 , 1 ), fontsize = self .legend_fontsize , frameon = False )
204204 ax .set_yticks (self .y_positions )
205205 ax .set_yticklabels (self .display_names , fontsize = self .ytick_label_fontsize )
206- ax .set_xlabel ("Percentage of rounds (larger is better) " , fontsize = self .label_fontsize )
206+ ax .set_xlabel ("Percentage of rounds" , fontsize = self .label_fontsize )
207207 ax .tick_params (axis = "y" , length = 0 )
208208 ax .tick_params (axis = "x" , labelsize = self .xtick_label_fontsize )
209209 ax .xaxis .set_minor_locator (plt .MultipleLocator (5 ))
@@ -281,13 +281,13 @@ def plot_validation_feedback(self):
281281 self ._add_total_bar_labels (ax , totals )
282282
283283 ax .set_title (
284- "$ \\ bf{ (c)\\ Validation\\ of\\ edits}$ \n Are the core changes validated \n by arena simulations or tests? " ,
284+ "(c) Validation of edits" ,
285285 fontsize = self .title_fontsize ,
286- fontweight = "normal " ,
286+ fontweight = "bold " ,
287287 pad = self .title_pad ,
288288 )
289- ax .legend (loc = "upper right" , fontsize = self .legend_fontsize , frameon = False )
290- ax .set_xlabel ("Percentage of rounds (larger is better) " , fontsize = self .label_fontsize )
289+ ax .legend (loc = "upper right" , bbox_to_anchor = ( 1.15 , 1 ), fontsize = self .legend_fontsize , frameon = False )
290+ ax .set_xlabel ("Percentage of rounds" , fontsize = self .label_fontsize )
291291 ax .tick_params (axis = "y" , length = 0 )
292292 ax .tick_params (axis = "x" , labelsize = self .xtick_label_fontsize )
293293 ax .xaxis .set_minor_locator (plt .MultipleLocator (5 ))
@@ -342,19 +342,20 @@ def plot_hallucination_categories(self):
342342 self ._add_total_bar_labels (ax , totals )
343343
344344 ax .set_title (
345- "$ \\ bf{ (b)\\ Hallucinated\\ Loss\\ Causality}$ \n Are there hallucinated or unsubstantiated \n claims about why arenas were lost? " ,
345+ "(b) Hallucinated Loss Causality" ,
346346 fontsize = self .title_fontsize ,
347- fontweight = "normal " ,
347+ fontweight = "bold " ,
348348 pad = self .title_pad ,
349349 )
350350 ax .legend (
351351 loc = "center right" ,
352+ bbox_to_anchor = (1.15 , 0.55 ),
352353 fontsize = self .legend_fontsize ,
353354 frameon = False ,
354355 title = "Hallucinated claims based on" ,
355356 title_fontsize = 12 ,
356357 )
357- ax .set_xlabel ("Percentage of rounds (smaller is better) " , fontsize = self .label_fontsize )
358+ ax .set_xlabel ("Percentage of rounds" , fontsize = self .label_fontsize )
358359 ax .tick_params (axis = "y" , length = 0 )
359360 ax .tick_params (axis = "x" , labelsize = self .xtick_label_fontsize )
360361 ax .xaxis .set_minor_locator (plt .MultipleLocator (5 ))
0 commit comments