updating scatterplot