dynamically updating scatter plot