First try of a scatter plot constructor function (tentative)