monkeypatch matplotlib.legend.Legend._get_anchored_bbox. :
BEST, UR, UL, LL, LR, R, CL, CR, LC, UC, C = list(xrange(11))
anchor_coefs = {UR: "NE",
UL: "NW",
LL: "SW",
LR: "SE",
R: "E",
CL: "W",
CR: "E",
LC: "S",
UC: "N",
C: "C"}
" " . _find_best_position , , , . , , , :
BEST, UL, UR, LL, LR, R, CL, CR, LC, UC, C = list(xrange(11))
, UL UR. V- , , .
monkeypatch, _get_anchored_bbox, matplotlib.legend.Legend._get_anchored_bbox = my_get_anchored_bbox.
. , - matplotlib, , . , matplotlib , , .