implement scatter plot