Zoom or pan breaks legendonly

When I click on a legend, the trace disappears. Cool. Then i zoom on the plot and the trace shows up again. Annoying. How can have the zoom function remember which traces should be kept as legendonly?

Thanks

Hmm. Something here maybe:

Here you go::

1 Like