matplotlib.hatch._hatch_types.append(CustomHatch)
fig = plt.figure()
ax = fig.add_subplot(111)
ellipse = ax.add_patch(Ellipse((0.5, 0.5), 0.3, 0.5, fill=False))
ellipse.set_hatch('c')
ellipse.set_color('red')
plt.show()
How to fill a polygon with a custom hatch in matplotlib?