I have a list of rgb values and would like to create a costum colormap from the list.
These are the example values:
my_rgbs =[\'#ece804\',\'#ece804\',\'#
You want to use ListedColormap which exists for exactly this purpose:
my_cmap = matplotlib.colors.ListedColormap(my_rgbs, name='my_colormap_name')