updating scatter plot