is an option for legends such as PointLegend that specifies the size of marker regions for each element.


LegendMarkerSize
is an option for legends such as PointLegend that specifies the size of marker regions for each element.
Details

- The following settings can be used:
-
Automatic automatically determined size s width and height specified by s {w,h} explicit width and height {s1,s2,…} a list of sizes
Examples
Basic Examples (5)
Specify the same size for width and height:
Specify different sizes for width and height:
Specify the marker region size for PointLegend:
Vary the widths of lines in LineLegend:
Vary the heights of swatches in SwatchLegend:
Related Guides
-
▪
- Legends
History
Text
Wolfram Research (2012), LegendMarkerSize, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendMarkerSize.html.
CMS
Wolfram Language. 2012. "LegendMarkerSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LegendMarkerSize.html.
APA
Wolfram Language. (2012). LegendMarkerSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LegendMarkerSize.html
BibTeX
@misc{reference.wolfram_2025_legendmarkersize, author="Wolfram Research", title="{LegendMarkerSize}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/LegendMarkerSize.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_legendmarkersize, organization={Wolfram Research}, title={LegendMarkerSize}, year={2012}, url={https://reference.wolfram.com/language/ref/LegendMarkerSize.html}, note=[Accessed: 11-August-2025]}