d_labels = ['fred', 'julie', 'sam', 'peter', 'rob', 'baz']
d_colors = ['#2166ac', '#fee090', '#fdbb84', '#fc8d59', '#e34a33',
    '#b30000', '#777777']
More efficient matplotlib stacked bar chart - how to calculate bottom values