TimWindecker commited on
Commit
965c1dd
·
verified ·
1 Parent(s): 3a90fbb

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -7
src/streamlit_app.py CHANGED
@@ -171,7 +171,6 @@ def create_bar_chart(df, view_type):
171
  y="score",
172
  color="score",
173
  color_continuous_scale=px.colors.diverging.Fall,
174
- template="plotly_white",
175
  orientation="v",
176
  )
177
 
@@ -179,13 +178,11 @@ def create_bar_chart(df, view_type):
179
  xaxis_title_text="Model",
180
  yaxis_title_text="Score (Lower is better)",
181
  title_text="",
182
- font=dict(size=15, color="#363636"),
183
  xaxis_tickangle=-45,
184
  bargap=0.2, # Increase gap for slimmer bars
185
  height=500, # Set the height of the plot
186
- plot_bgcolor="rgba(0,0,0,0)",
187
- paper_bgcolor="rgba(0,0,0,0)",
188
- showlegend=(view_type != "Total Score"),
189
  margin=dict(
190
  l=0, # left
191
  r=0, # right
@@ -281,8 +278,8 @@ def create_bar_chart(df, view_type):
281
  # pad=0 # padding
282
  # ),
283
  # )
284
- fig.update_xaxes(showgrid=False)
285
- fig.update_yaxes(showgrid=True, gridcolor='lightgray', gridwidth=0.5)
286
 
287
  return fig
288
 
 
171
  y="score",
172
  color="score",
173
  color_continuous_scale=px.colors.diverging.Fall,
 
174
  orientation="v",
175
  )
176
 
 
178
  xaxis_title_text="Model",
179
  yaxis_title_text="Score (Lower is better)",
180
  title_text="",
181
+ font=dict(size=15),
182
  xaxis_tickangle=-45,
183
  bargap=0.2, # Increase gap for slimmer bars
184
  height=500, # Set the height of the plot
185
+ showlegend=(False),
 
 
186
  margin=dict(
187
  l=0, # left
188
  r=0, # right
 
278
  # pad=0 # padding
279
  # ),
280
  # )
281
+ # fig.update_xaxes(showgrid=False)
282
+ # fig.update_yaxes(showgrid=True, gridcolor='lightgray', gridwidth=0.5)
283
 
284
  return fig
285