Fix matplotlib for ubuntu server