John Hunter <jdh2358@...149...> writes:
� �pyplot.savefig('foo1')
Take a look at the pyplot "switch_backends" function.
Yes, that function was on the next line after the part you quoted.
It calls matplotlib.use with warn=False, but that function ends up doing
nothing.
Alternatively, agg knows how to save pdf if given the extension, so we
could wire up the testing to use a module level extension set
somewhere which could be updated for each backend. This is probably
safer and cleaner than switch_backends
That sounds complicated. How about having the test cases call savefig
with all the relevant file formats? That doesn't look so nice if the
test cases end up with a big block of savefig calls, but it has the
advantage that there is no magic involved and it is very obvious what is
going on.
···
--
Jouni K. Sepp�nen
http://www.iki.fi/jks