drawing scatterplot works