add get_cmap and linear cmap builder.