Specifying the line width of the legend frame, in matplotlib
For the width: legend.get_frame().set_linewidth(w)
For the color: legend.get_frame().set_edgecolor("red")
In matplotlib, how do I specify the line width and color of a legend frame?