Extract mapping logic to plot simple scatter plot