make matplotlib work