update matplotlib to 1.3.1