I\'m drawing several bar and pie charts using matplotlib.pyplot.bar() and matplotlib.pyplot.pie(). In both functions, I can change the colors of the bars and wedges.
<
With bar(), you can directly use hatches (with some backends): http://matplotlib.org/examples/pylab_examples/hatch_demo.html:

It works by adding the hatch argument to your call to bar().
As for pie(), it does not have a hatch keyword. You can instead get the individual pie chart patches and add hatches to them: you get the patches with:
patches = pie(…)[0] # The first element of the returned tuple are the pie slices
then you apply the hatches to each slice (patch):
patches[0].set_hatch('/') # Pie slice #0 hatched.
(hatches list at https://matplotlib.org/api/_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch.set_hatch).
And you apply the changes with:
pyplot.draw()
![Hatched pie chart]](https://i.stack.imgur.com/v13xP.png)