How to change the visibility of specific traces without changing the current visibility of other traces?

Hi there,

Let me know how i can change the visibility of a specific trace using updatemenus without changing the current visibility of the other traces.

For Example:

There are 10 traces whose visibility can be switched from true to legendonly via the legend.

I need to change the visibility of trace 2 and 6 to true with a button (updatemenus), but the other traces have to stay in the current state.

Thanks, in advanced.

If what you want is a functionality similar to the legends of the graphs but with buttons, this can help you.

UPDATED