I would like to change the alpha of the legend's labels on Matplotlib.
I tried to get the legend's label's artist and set the alpha.
lh = ax.get_legend_handles_labels()
for label in lh[1]:
label.set_alpha(0.6)
I expect the label's alpha to change but it doesn't work. It is not getting the label artist, just the strings: AttributeError: 'str' object has no attribute 'set_alpha'