From: Eric F. <ef...@ha...> - 2007-07-06 04:44:17
|
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. |