makecmap function

Generate a color map from numeric values to colors