On Wed, Oct 27, 2010 at 10:36 PM, Matthieu Huin <matthieu.h...@wallix.com> wrote: > Anyone knows of a comprehensive doc or tutorial on that subject ?
Unfortunately there is no such things as far as I know. The agg_filter itself has relatively simple api (from the documentation of backend_agg.stop_filter). """ Save the plot in the current canvas as a image and apply the *post_processing* function. def post_processing(image, dpi): # ny, nx, depth = image.shape # image (numpy array) has RGBA channels and has a depth of 4. ... # create a new_image (numpy array of 4 channels, size can be # different). The resulting image may have offsets from # lower-left corner of the original image return new_image, offset_x, offset_y The saved renderer is restored and the returned image from post_processing is plotted (using draw_image) on it. """ So, any callable object with above api can be used as a filter. And the classes in the above example describes just one way to create such filters. The agg_filter functionality is a very experimental feature. While I contributed the example code, I myself rarely use this feature. And I'm afraid that I may not be able to find enough time to maintain and/or improve the code. Regards, -JJ ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users