How to make groups of horizontal bars have the same color?
问题 I need to plot horizontal bars using the grouped style such that all the bars belonging to each group have the same color but different from other groups (i.e. all bars of the top group are red, the group below it - green, and so on...). Also, how can I put the values on the top of each bar horizontally? How can I control the position of such values? This is my code: y = [91.9 8.1 94.4 5.6; 84.9 15.1 90.12 9.88; 89.4 10.6 91.2 8.8; 72 28 50.9 49.1]; h = barh(y,'grouped'); job = {'group1',