Update to matplotlib 1.3.0

Needed to edit the inreplace line because they changed setupext.py a bit. I didn't test the various optional dependencies very exhaustively but I don't think anything has changed there.