I\'ve install matplotlib in my virtualenv using pip. It was a failure at the beginning, but after I do easy_install -U distribute, the installation goes smoothl
I had difficulty using matplotlib with heroku as well and the answers are very hard to find. This helped me.
Basically what you have to do is push the project with numpy in the requirements.txt. Only after this we have to add pandas and matplotlib to the requirements.txt.