I'm using python and matplotlib to create several closed polygons. I then need to fill them with a hatch, which can be done through set_hatch.
http://matplotlib.org/api/artist_api.html#matplotlib.patches.Patch.set_hatch
http://matplotlib.org/examples/pylab_examples/hatch_demo.html
Unfortunately I am working with greyscale images, and I need more hatches than provided by default - I would prefer to provide a bitmap (or some similar image) which could be tiled instead of using these hatches with varying densities.
I am open to other python libraries (pyglet, pygame, PIL, etc) however I would prefer the solution to be in python.