Troubleshooting
For guidance on debugging an installation, see Frequently asked questions.
Problems with git
First, make sure you have a clean build and install (see How to completely remove Matplotlib), get the latest git update, install it and run a simple test script in debug mode:
rm -rf /path/to/site-packages/matplotlib*