updated scatterplot to use scales