I have a large scatter plot displayed, and now I want to make my user able to filter out some points with a few buttons
for example, let's say points is an array
- button_1 : show only points[[1,2,3]]
- button_2 : show only points[[4,5,6]]
Is there a simple way to achieve this ? I've been searching on internet for so long...
I know the code below should work, but I can't find the right args :/ I want to use a boolean array saying whether or not the point should be displayed
fig.update_layout(
updatemenus=[
dict(
type="buttons",
buttons=[
dict(method='restyle',
label=col,
visible=True,
args=< ??? >,
),
],
)
]
)
