a0y0346 commited on
Commit
73045e3
·
1 Parent(s): 83079d4

Fix Online Softmax charts: increase height (350px), margins, and y-axis range for labels

Browse files
Files changed (1) hide show
  1. src/visualizer.py +5 -4
src/visualizer.py CHANGED
@@ -281,13 +281,14 @@ def create_online_softmax_state(
281
  )
282
 
283
  fig.update_layout(
284
- height=280,
285
- margin=dict(l=40, r=40, t=60, b=40),
286
  showlegend=False,
287
  )
288
 
289
- fig.update_yaxes(range=[0, 12], row=1, col=1)
290
- fig.update_yaxes(range=[0, 15], row=1, col=2)
 
291
 
292
  # Generate explanation text
293
  d = current_data
 
281
  )
282
 
283
  fig.update_layout(
284
+ height=350,
285
+ margin=dict(l=40, r=40, t=80, b=40),
286
  showlegend=False,
287
  )
288
 
289
+ # Increase y-axis range to make room for text labels above bars
290
+ fig.update_yaxes(range=[0, 14], row=1, col=1)
291
+ fig.update_yaxes(range=[0, 18], row=1, col=2)
292
 
293
  # Generate explanation text
294
  d = current_data