automatically find an optimal position a plot legend based on point counts in each plot corner
Useful links