Is there a way to add tooltips to a stacked bar plot in matplotlib? I would like to use only matplotlib. My stacked bar plot has more than ten bars in each position. I would like to have a tooltip for each stacked bar. I have seen the question matplotlib-stacked-bar-chart-and-tooltip but the answer there uses mpldatacursor and I would like to use only matplotlib. In addition, I will have more than two bars in each position, as already mentioned.
What I want to achieve is shown in the figure below. The bars with less than 10% will have no label but a tooltip showing information about them. The tooltip will be displayed with a mouse hover event.