added ability to have multiple sets of x coordinates to go with multiple sets of y coordinates