made generate_cmap_norm take a string for cm too