Pick coordinates in 2D

Fixes #1337.