WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

LegendLayout

is an option for legends that specifies how to format the legend content.

Details
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
History
Cite this Page

LegendLayout

is an option for legends that specifies how to format the legend content.

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)

Format a legend horizontally:

Format a legend vertically:

Reverse the order:

Write a function to construct a legend as a formatted table:

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.

CMS

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

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: 17-November-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: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /