After line 56, here is the code:
updatemenus=[
{
'buttons': [
{
'args': [
{'visible': [True, False]},
{'title': 'Type A'}
],
'label': 'Type A',
'method': 'update'
},
{
'args': [
{'visible': [False, True]},
{'title': 'Type B'}
],
'label': 'Type B',
'method': 'update'
}
],
'direction': 'down',
'showactive': True,
'x': 0,
'xanchor': 'left',
'y': 1.2,
'yanchor': 'top'
},
],
# define the corresponding x, y axis
xaxis = {'visible': False},
yaxis= {'visible': False},
)
])
# Run the app
if __name__ == '__main__':
app.run_server(debug=True)