Carl Worth wrote: > On Thu, 05 Jul 2007 13:22:11 -1000, Eric Firing wrote: [...] > > My suggestion would be to make it default to .png if no additional > information is provided, and then to also add some sort of pseudo > backends so that the other cairo-supported file types could easily be > obtained with this same savefig call. For example something like: > > python myscript.py -dCairoPDF > > What do you think? Would that be simple to implement?
It's done, except that it is '-dCairo.pdf'. Also, examples/backend_driver.py now supports case-insensitive specifation of backends, and the same form of cairo specification. See docstring at the top. I found that the cairo backend writes ps files but not eps--it enlists backend_ps for eps files. Does pycairo not have a way to specify eps rather than ps output? Eric > > -Carl > > PS. I'd be more inclined to name the backends things like cairo-pdf > than CairoPDF but it seems that the latter better fits the existing > convention for matplotlib backend naming. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel