[colormaps] fixed bug in rgb_to_cmap when only single colors are provided ;mapping between 0 to 1
[polygon utils] changed import statement