matplotlib の legend(凡例) の 位置を調整する - Qiita

凡例を表示するplt.legendには3つのパラメータがあります.bbox_to_anchorlocborderaxespadbbox_to_anchorでは, 凡例の枠の, 図全体に対する…