Support placement of the legend in any of the four corners.

Closes #27.