How to adjust the size of matplotlib legend box?
问题 I have a graph whose left upper corner is quite blank. So I decide to put my legend box there. However, I find the items in legend are very small and the legend box itself is also quite small . By "small", I mean something like this How can I make the items ( not texts! ) in the legend box bigger? How can i make the box itself bigger? 回答1: To control the padding inside the legend (effectively making the legend box bigger) use the borderpad kwarg. For example, here's the default: import