From: Eugene M. M. <em...@ge...> - 2005-07-26 12:05:26
|
Hello. Yesterday I read about your grahp module and thinking following: 1) PyX is a very flexible and powerfull instrument, because it based on the PostScript language and TeX. 2) graph is a very useful and simple to use instrument But there are some "spoon of wood-tar in the barrel of honey" (This is russian idiom) 3) PyX working very slowly. If I need the quick method to produse diagram, I forced to use PIL, not a PyX, because PyX delegate some parts of wor to lagre external programs. Perhaps you can improve some in the PyX, but I can't belive that you can make PyX as speedly as PIL. And I think it's right: PyX good for vector graphic, and PIL for raster. I dream about some UpLevel driver for PIL which have interface same as PyX. With this driver programmer will can abstract from the PyX or PIL and wrote something like: try: from pyx import graph except ImportError: from dream import graph Or, more wise: def getpicture(format, *args): if format in ["EPS", "PDF"]: driver =3D pyx.graph else: driver =3D dream.graph ... implementation, which use driver What do you think about? Prehaps I don't know something and this already done by somebody, perhaps I should be write this "PIL emulator", perhaps this may be part of the PyX. --=20 Sensory yours, Eugene Minkovskii =F3=C5=CE=D3=CF=D2=CE=CF =D7=C1=DB, =E5=D7=C7=C5=CE=C9=CA =ED=C9=CE=D8=CB= =CF=D7=D3=CB=C9=CA |