From: <si...@mu...> - 2010-07-01 17:13:37
|
> Anyhow, if you get a python version of plsmem to work following the general > PLplot/swig implementation overview I have described, then I would be > pleased to accept your patch to bindings/python/plplotcmodule.i as well as > the trivial patch for bindings/swig-support/plplotcapi.i that I > mentioned above. > Turns out that the whole patch is pretty trival, see attached. The sample script will plot to a memory buffer, and then uses PIL to write this to a file. You can even open an image, convert to buffer, plot and write back to image if you want to do overlays, etc. Have fun, and let me know if it causes any problems. Simon. |