Legend click modifier: hide all others

Given e.g. 10 lines with legends, all visible initially and p.legend.click_policy = "hide" to see only one line at a time the user has to hide all others by clicking on them separately one after the other. Is there a way to “Show only this line” when clicking on a line in the legend, e.g. by having a modifier key Shift or Ctrl held down while clicking?

I got used to this feature from Grafana, although there the behaviour is the inverse, i.e. click shows only one line and modifier+click shows/hides single line.

Related to this topic, but with clicking instead of hovering.

This is still presently an open feature request:

Hope to get so it fairly soon if no-one else takes it up.

1 Like