Legend entries ordered horizontally with pyplot()


Is there a way to list the legend entries horizontally, next to each other, instead of one under each other?


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.