Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
caa3685
1
Parent(s):
696e3de
Re-enable y-axis auto-reversal in game rotation timeline plot
Browse files
app.py
CHANGED
@@ -705,7 +705,7 @@ with tab5:
|
|
705 |
fig = px.timeline(x_start=x_start_vals, x_end=x_end_vals, y=y_vals, range_x=[0,check_rotation["Finish"].max()], text=text_vals)
|
706 |
|
707 |
fig.layout.xaxis.type = 'linear'
|
708 |
-
|
709 |
|
710 |
# Create a color map for each unique player
|
711 |
player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
|
|
|
705 |
fig = px.timeline(x_start=x_start_vals, x_end=x_end_vals, y=y_vals, range_x=[0,check_rotation["Finish"].max()], text=text_vals)
|
706 |
|
707 |
fig.layout.xaxis.type = 'linear'
|
708 |
+
fig.update_yaxes(autorange="reversed")
|
709 |
|
710 |
# Create a color map for each unique player
|
711 |
player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
|