0

The minimum non-working example from the official documentation, including a Jupyter notebook (recommended).

I just want to do what it says, click on the legend, and get lines less visible or highlighted. When I run the Jupyter notebook, I cannot click on the legend to select the lines, and the demo linked in the official documentation does not work in my browser either.

I have further modified the code to produce a SVG (as in this answer), which still fails, but at least not so blatantly.

Is this something that can be fixed? How?

Trylks
  • 1,458
  • 2
  • 18
  • 31
  • Did you try the example from the version you are using (3.3.2)? https://matplotlib.org/3.3.2/gallery/event_handling/legend_picking.html – tmdavison Sep 24 '20 at 13:54
  • looks like some of that example has changed, you might want `legline.set_picker(True)` – tmdavison Sep 24 '20 at 13:56
  • same behaviour. In fairness I have to say the examples about [annotating on hover](https://mplcursors.readthedocs.io/en/stable/examples/hover.html) also interesting to me do not work either, and in fact the demo in the official documentation does not work in any of my browsers, I am suspecting there is a deeper problem here... – Trylks Sep 24 '20 at 14:00
  • ah I see. It works for me in an interactive window; haven't tried in a notebook – tmdavison Sep 24 '20 at 14:53

0 Answers0