PointLegend
PointLegend[{col1, ...}, {lbl1, ...}] generates a legend that associates points of colors coli with labels lbli.
PointLegend[{col1, ...}, Automatic]generates a legend with placeholder labels.PointLegend[{lbl1, ...}]represents a legend with inherited colors within visualization functions.
Styling options
PointLegend supports LegendFunction, LegendLayout, LegendMargins, LabelStyle, RoundingRadius, and Background.
LegendFunctionaccepts the named functions"Panel","Frame","Framed","DarkFrame", and"Frameless". Arbitrary functions are not currently supported.LegendLayoutaccepts"Row","Column","ReversedRow", and"ReversedColumn".LegendMarginsaccepts either one margin for every side or{{left, right}, {top, bottom}}.LabelStylesupports colors,FontFamily, andFontSize.RoundingRadiussets the corner radius of the legend container.Backgroundsets the container background.
Examples
PointLegend[{Red, Blue, Green}, {"A", "B", "C"}]ListPlot[{{1, 4, 2}, {2, 3, 5}},
PlotLegends -> PointLegend[{"Series 1", "Series 2"}]]PointLegend[{Red, Blue}, Automatic]ListPlot[{{1, 4, 2}, {2, 3, 5}},
PlotLegends -> PointLegend[Automatic, {"Series 1", "Series 2"},
LegendFunction -> "Framed",
Background -> White,
LegendLayout -> "Row"
]
]Please visit the official Wolfram Language Reference for more details.