Sync visualizations.py from kosmonautical/openhands-index-paul

#24
Files changed (1) hide show
  1. visualizations.py +6 -1
visualizations.py CHANGED
@@ -9,7 +9,7 @@ import plotly.graph_objects as go
9
  import aliases
10
 
11
  # Import the generic scatter chart function - single source of truth
12
- from leaderboard_transformer import create_scatter_chart, STANDARD_LAYOUT, STANDARD_FONT
13
 
14
 
15
  def _find_column(df: pd.DataFrame, candidates: list, default: str = None) -> str:
@@ -43,6 +43,7 @@ def create_evolution_over_time_chart(df: pd.DataFrame, mark_by: str = None) -> g
43
  font=STANDARD_FONT
44
  )
45
  fig.update_layout(**STANDARD_LAYOUT, title="Model Performance Evolution Over Time")
 
46
  return fig
47
 
48
  # Find score column
@@ -63,6 +64,7 @@ def create_evolution_over_time_chart(df: pd.DataFrame, mark_by: str = None) -> g
63
  font=STANDARD_FONT
64
  )
65
  fig.update_layout(**STANDARD_LAYOUT, title="Model Performance Evolution Over Time")
 
66
  return fig
67
 
68
  # Use the generic scatter chart
@@ -102,6 +104,7 @@ def create_accuracy_by_size_chart(df: pd.DataFrame, mark_by: str = None) -> go.F
102
  font=STANDARD_FONT
103
  )
104
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
 
105
  return fig
106
 
107
  # Filter to only open-weights models
@@ -124,6 +127,7 @@ def create_accuracy_by_size_chart(df: pd.DataFrame, mark_by: str = None) -> go.F
124
  font=STANDARD_FONT
125
  )
126
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
 
127
  return fig
128
 
129
  # Find score column
@@ -143,6 +147,7 @@ def create_accuracy_by_size_chart(df: pd.DataFrame, mark_by: str = None) -> go.F
143
  font=STANDARD_FONT
144
  )
145
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
 
146
  return fig
147
 
148
  # Use the generic scatter chart
 
9
  import aliases
10
 
11
  # Import the generic scatter chart function - single source of truth
12
+ from leaderboard_transformer import apply_neutral_chart_gridlines, create_scatter_chart, STANDARD_LAYOUT, STANDARD_FONT
13
 
14
 
15
  def _find_column(df: pd.DataFrame, candidates: list, default: str = None) -> str:
 
43
  font=STANDARD_FONT
44
  )
45
  fig.update_layout(**STANDARD_LAYOUT, title="Model Performance Evolution Over Time")
46
+ apply_neutral_chart_gridlines(fig)
47
  return fig
48
 
49
  # Find score column
 
64
  font=STANDARD_FONT
65
  )
66
  fig.update_layout(**STANDARD_LAYOUT, title="Model Performance Evolution Over Time")
67
+ apply_neutral_chart_gridlines(fig)
68
  return fig
69
 
70
  # Use the generic scatter chart
 
104
  font=STANDARD_FONT
105
  )
106
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
107
+ apply_neutral_chart_gridlines(fig)
108
  return fig
109
 
110
  # Filter to only open-weights models
 
127
  font=STANDARD_FONT
128
  )
129
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
130
+ apply_neutral_chart_gridlines(fig)
131
  return fig
132
 
133
  # Find score column
 
147
  font=STANDARD_FONT
148
  )
149
  fig.update_layout(**STANDARD_LAYOUT, title="Open Model Accuracy by Size")
150
+ apply_neutral_chart_gridlines(fig)
151
  return fig
152
 
153
  # Use the generic scatter chart