From: John H. <jd...@gm...> - 2009-09-23 17:50:46
|
On Wed, Sep 23, 2009 at 12:42 PM, Andrew Straw <str...@as...> wrote: > Sorry, I should have been more clear. I was thinking that the > image_compare() decorator would call the test function multiple times, > having switched the backend between invocations. Thus, the call to > savefig() would continue not to explicitly set the extension. I've > quickly modified the source to reflect my idea, but I haven't had a > chance to flesh it out or test it. It should show the idea, though. See > attached. Why not have the decorator pass the extension in to the test funcs -- agg can print to pdf, ps, svg and png |