pyplot is simply matplotlib under the hood, so you can simply do a search based on that which turns up this:
There is an ‘ncol’ argument and i would think that making it equal to the number of items in the legend will do what you want.
pyplot is simply matplotlib under the hood, so you can simply do a search based on that which turns up this:
There is an ‘ncol’ argument and i would think that making it equal to the number of items in the legend will do what you want.