""" Hatching (pattern filled polygons) is supported currently in the PS, PDF, SVG and Agg backends only. """ import matplotlib.pyplot as plt from matplotlib.patches import Ellipse, Polygon fig = plt.figure() ax1 = fig.add_subplot(131) ax1.bar(range(1, 5), range(1, 5), color='red', edgecolor='black', hatch="/") ax1.bar(range(1, 5), [6] * 4, bottom=range(1, 5), color='blue', edgecolor='black', hatch

