process multiple samples, find graph coordinates