Set up matplotlib before enabling sandbox.