LegendLayout
Details

- Possible settings for LegendLayout are:
-
Automatic automatic layout "Row" left-to-right layout "Column" bottom-to-top layout "ReversedRow" right-to-left layout "ReversedColumn" top-to-bottom layout f layout determined by function f - For LineLegend, PointLegend, and SwatchLegend, the argument to the function f is a table {{style1,label1},{style2,label2},…} of styles and associated labels.
- For BarLegend, the argument to f is a color function cf, range of values {min,max}, and list of contour values contours.
Examples
Basic Examples (3)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0d6hs7xxa6-zg0m6z
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0d6hs7xxa6-3qcfqw
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0d6hs7xxa6-mwdov2
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0d6hs7xxa6-i9vsj8
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0d6hs7xxa6-9cnpgg
Out[3]=3

Write a function to construct a legend as a formatted table:
In[1]:=1

✖
https://wolfram.com/xid/0d6hs7xxa6-vp4naa
In[2]:=2

✖
https://wolfram.com/xid/0d6hs7xxa6-d5bcdg
Out[2]=2

Wolfram Research (2012), LegendLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendLayout.html.
✖
Wolfram Research (2012), LegendLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendLayout.html.
Text
Wolfram Research (2012), LegendLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendLayout.html.
✖
Wolfram Research (2012), LegendLayout, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendLayout.html.
CMS
Wolfram Language. 2012. "LegendLayout." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LegendLayout.html.
✖
Wolfram Language. 2012. "LegendLayout." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LegendLayout.html.
APA
Wolfram Language. (2012). LegendLayout. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LegendLayout.html
✖
Wolfram Language. (2012). LegendLayout. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LegendLayout.html
BibTeX
✖
@misc{reference.wolfram_2025_legendlayout, author="Wolfram Research", title="{LegendLayout}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/LegendLayout.html}", note=[Accessed: 19-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_legendlayout, organization={Wolfram Research}, title={LegendLayout}, year={2012}, url={https://reference.wolfram.com/language/ref/LegendLayout.html}, note=[Accessed: 19-May-2025
]}