Set max matplotlib version to 1.3.1

Workaround to get our tests passing until #649 is fixed.

@ebolyen can you please review/merge if tests pass?