Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Problem
I needed to make an interactive "plot viewer" where the lines can be enabled and disabled. A simple way to do this is just to add all the lines with labels and then make them visible or invisible. However, it seems like there is no way to update the legend accordingly and regenerating the legend will still show all lines, although with an empty marker for those not visible.
Proposed solution
I may be missing something here. That is for sure. But:
It would be nice if there was a way to redraw the legend and/or making sure that non-visible objects are not shown.
(I am aware that there is quite a lot of arguments to legend already, but still...)
(If there is another nice way to obtain this, turning lines/artists on/off with updated legend, I think it could be a neat example.)