Matplotlib: stackplot with different hatches

Viewed 2030

I want to create a stackplot using python matplotlib library, which I did as on the below pseudocode

plt.stackplot(x,
          [first_value, second_value, third_value], 
          colors=['color1','color2','color3'])

However I want to add to each part (i.e., first_value, second_value, third_value) different hatches, but the hatch command works on the whole plot. How can I pass to the stackplot a list of different hatches?

1 Answers
Related