keeptg
keeptg

Reputation: 47

How can I plot a legend with multiple rows and columns?

I'm working on a bar-plot like this:

enter image description here

I want to move the legend to the upper-left corner and upon the top spine. But it is too high and will covered some bars. So I want to change it as 2 rows and 4 columns. How should I do? I've searched about 1 hour and have no result, maybe I got wrong keywords.

Upvotes: 0

Views: 223

Answers (1)

gboffi
gboffi

Reputation: 25093

From the fine docs

ncol : integer
      The number of columns that the legend has. Default is 1.

Upvotes: 2

Related Questions