Use SVG for matplotlib in tests and examples via matplotlibrc.