discrete_coloring function

Generates the parameters necessary for discrete coloring and colorbar