added colorbar when doing color scatter plot.  Also fixed index of color data.