[PYTHON] Translucent matplotlib legend

How to write a legend that is semi-transparent in one line when drawing a graph using matplotlib in python

   ax.legend()

The part of is as follows.

   ax.legend().get_frame().set_alpha(0.6)

I tried to write it for the first time in a long time, but I forgot, so make a note here.

Recommended Posts

Translucent matplotlib legend
matplotlib legend layout notes
Matplotlib memorandum
Matplotlib gallery
Matplotlib memo
matplotlib summary