dylanplummer commited on
Commit
547e0cb
·
1 Parent(s): 4b5adda

add event type ticks

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -277,6 +277,11 @@ def inference(x, count_only_api, api_key, img_size=192, seq_len=64, stride_lengt
277
  paper_bgcolor='rgba(0,0,0,0)',
278
  plot_bgcolor='rgba(0,0,0,0)'
279
  )
 
 
 
 
 
280
 
281
  hist = px.histogram(df,
282
  x="jumps per second",
 
277
  paper_bgcolor='rgba(0,0,0,0)',
278
  plot_bgcolor='rgba(0,0,0,0)'
279
  )
280
+ fig.update_layout(coloraxis_colorbar=dict(
281
+ tickvals=np.linspace(0, 1, num=7),
282
+ ticktext=['single rope speed', 'double dutch', 'double unders', 'single bounces', 'double bounces', 'triple unders', 'other'],
283
+ title='event type'
284
+ ))
285
 
286
  hist = px.histogram(df,
287
  x="jumps per second",