Added algorithm to auto detect most frequent colors in the plot. This will help color selection and data point detection