I want to create a stacked bar chart with more than 20 discrete classes. The largest discrete colormap only has 20 colors, which is note enough for me. Below are the discrete colormaps:
My idea is to combine/concatenate colormaps tab20b and tab20c such that I have 40 discrete colors. Is this easily doable in python?
Create your custom colormap:
from matplotlib import cm, colors
cmap = colors.ListedColormap(cm.tab20.colors + cm.tab20c.colors, name='tab40')