Trying to upgrade matplotlib as in this post, I ran
export PYTHONHOME=/usr/lib/python2.7/ sudo easy_install -U distribute sudo pip install --upgrade matplotlib <
Use Anaconda.
https://store.continuum.io/cshop/anaconda/
It has every Python package you could possibly think of - including matplotlib - it updates them all at once as well.