Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 548 Bytes

File metadata and controls

23 lines (19 loc) · 548 Bytes

Custom Buttons

Hide / Show traces

data = [trace1, trace2]

updatemenus = list([
    dict(type="buttons",
         buttons=list([
            dict(label = 'Show Trace 1',
                 method = 'update',
                 args = [{'visible': [True, False]},
                         {'title': 'Trace 1'}]),
            dict(label = 'Show Trace 2',
                 method = 'update',
                 args = [{'visible': [False, True]},
                         {'title': 'Trace 2'}]),
        ]),
    )
])