# Using PlotLegends with a numeric PointSize

Using PlotLegends with a PlotStyle containing (for instance) PointSize[0.02] creates a legend that does not match the plot.

ListPlot[Table[RandomReal[NormalDistribution[], {20, 2}], {2}],
PlotLegends -> {"a", "b"}, PlotStyle -> PointSize[0.02]]


How can I get a sensible legend when using a number with PointSize? Solutions involving named sizes (like PointSize[Medium]) are inadmissible unless they somehow create points that have a constant size relative to the plot size.

-

This problem often occurs in plotting and graphics because of the use of Foo instead of AbsoluteFoo for the directives. The former uses sizes relative to the plot size, whereas the latter, as the name suggests, uses absolute sizes.
In the built-in plot legends in version 9, the plot and the legend are actually two separate objects which are just combined, hence PointSize uses the figure size of each of those to compute what 0.02 means. All you need to do is to change it to AbsolutePointSize to keep it consistent between the two. Of course, the argument will also change and AbsolutePointSize[7] looks close enough to what you were gunning for.