Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeylau committed Jun 5, 2020
1 parent a2b122e commit e6ca71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val,
elif 'autorange' in key:
view.fig.update_xaxes(autorange=True)
view.fig.update_yaxes(autorange='reversed')
n_bpt = view.options.index(option) if option in view.options else 0
n_bpt = view.options.index(option)
if button_id != 'slider' and 'relayout' not in event:
n_bpt += 1
new_option = view.options[min(len(view.options) - 1, n_bpt)]
Expand Down

0 comments on commit e6ca71e

Please sign in to comment.