scatterplotcode for course