TST: Move matplotlib.use() to before other matplotlib imports