When setting up matplotlib on Windows you need numpy. To install numpy you need the Microsoft Visual C++ Compiler for Python 2.7. After this is installed you can run the command:
pip install matplotlib
The link to the compiler is https://www.microsoft.com/en-us/download/details.aspx?id=48145.