# Legend entries ordered horizontally with pyplot()

**URL:** <https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770>\
**Category:** General Usage\
**Created:** [December 28, 2019, 10:45pm UTC](https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770 "2019-12-28T22:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliauser](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Post date:** [December 28, 2019, 10:45pm UTC](https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770/1 "2019-12-28T22:45:57Z")

</div>

Hi,

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

Thanks

---

<div class="post-metadata">

**Author:** ![purplishrock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/purplishrock/32/13451_2.png) [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Post date:** [December 29, 2019, 1:58am UTC](https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770/2 "2019-12-29T01:58:18Z")

</div>

pyplot is simply matplotlib under the hood, so you can simply do a search based on that which turns up this:

[https://stackoverflow.com/questions/10101141/matplotlib-legend-add-items-across-columns-instead-of-down](https://stackoverflow.com/questions/10101141/matplotlib-legend-add-items-across-columns-instead-of-down)

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.
