they plotted it. They got the distance using various techniques (red shift,etc) and then there are the the spots from the big bang that showed spots where gravity was more "active?" which expanded into galaxy clusters that we know today. holy shit that explanation was bad this is why I got a C in my frontiers astronomy paper.