Try setting backend to Agg for plot tests: