====== Installing Matplotlib ====== Our code runs on Python 2.7. =====For Installation on a Mac===== - Install [[http://brew.sh/|Homebrew]] by running the following command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - Install Python 2.7 brew install python - Install several Python packages - mpmath: an arbitrary precision math library pip install mpmath - numpy: numerical python library pip install numpy - scipy: scientific python library pip install scipy - ipython: useful python shell pip install ipython - Install Matplotlib - First, install pkg-config which helps to configure matplotlib when it is compiled. brew install pkg-config - Next, install the freetype and libpng libraries which matplotlib accesses when compiling. brew install freetype brew install libpng - Next, install the ffmpeg library which allows us to save movies when using matplotlib. brew install ffmpeg - Lastly, install matplotlib. pip install matplotlib - To compile code written in python enter: python < name of file > I referenced this website for installing python: http://www.lecloud.net/post/119427148455/python-pip-on-mac-os-x-yosemite I referenced this website for installing the packages and matplotlib: http://www.tapir.caltech.edu/~dtsang/python.html