chriscanal commited on
Commit
02700b6
1 Parent(s): e872e8a

Added y-axis range to make graph more aesthetically pleasing

Browse files

range was set to automatic which puts horizontal line at the top, incorrectly implying that humans are peak intellectual performance.

![Screenshot 2023-09-26 at 9.49.32 AM.png](https://cdn-uploads.huggingface.co/production/uploads/62e2c159555a866437a920ca/hvdViR0A21XNro1o2gYcn.png)

New graph has 0 to 100 range

![Screenshot 2023-09-26 at 9.55.57 AM.png](https://cdn-uploads.huggingface.co/production/uploads/62e2c159555a866437a920ca/d8ZUVmKlbQalHJ7Hid_Zr.png)

Files changed (1) hide show
  1. src/display_models/plot_results.py +3 -0
src/display_models/plot_results.py CHANGED
@@ -184,6 +184,9 @@ def create_metric_plot_obj(
184
  )
185
  )
186
 
 
 
 
187
  # Create a dictionary to hold the color mapping for each metric
188
  metric_color_mapping = {}
189
 
 
184
  )
185
  )
186
 
187
+ # Update the range of the y-axis
188
+ fig.update_layout(yaxis_range=[0, 100])
189
+
190
  # Create a dictionary to hold the color mapping for each metric
191
  metric_color_mapping = {}
192