Now accepts either two or three sets of data and plots accordingly.