How to set selected line alpha to 1.0

The default behavior is to have the alpha decrease on selection, like Germany here:

We would like kind of the opposite behavior, where we have start with all the lines having low alpha (which we know how to do), and then have alpha increase on selection, to highlight the selected plot.

How would we do that?

We tried setting selection_line_alpha=1.0 but that didn’t seem to do anything.

The legend actually uses the muted options, i.e. in this case you’d set muted_line_color.

Woohoo! Thanks @philippjfr!
Adding {'alpha':0.2, 'muted_line_alpha':1.0} to my opts dict did the trick!

1 Like