Plotly: How to update one specific trace using updatemenus?
问题 This is a follow-up question to Plotly: Plotly: How do the buttons for the update menus really work? Consider the following plotly figure produced by the code snippet below: Plot: Code: # imports import plotly.graph_objs as go import pandas as pd import numpy as np # data df1 = pd.DataFrame({'index': ['1','2','3'], 'A': [10,10,12], 'B': [11,11,11]}) df2 = pd.DataFrame({'index': ['1','2','3'], 'A': [10,10,10], 'B': [11,11,12]}) # plotly figure setup fig=go.Figure() fig.add_trace(go.Scatter(x