Try setting matplotlib to use Agg backend

Getting error in Travis when using the default tk backend.