plt function

bins nearest neighbour distances