Trim matplot figure