Matplotlib: Difference between revisions

imported>Jesstess
imported>Jesstess
=== 1. Install the project dependencies ===
 
Installing matplotlib andis itsunfortunately dependenciesrather iscomplicated somewhaton OSX and involved;Windows. pleasePlease ask for help if you get stuck or don't know where to start!
 
First, install <code>numpy</code>. On Linux, you can use your package manager to install the <code>python-numpy</code> package. On Windows and OSX, you can download the appropriate binary from http://sourceforge.net/projects/numpy/files/NumPy/1.7.1/.
==== Windows users only ====
 
Then, install <code>matplotlib</code>. On Linux, you can use your package manager to install the <code>python-matplotlib</code> package. On Windows and OSX, you can download the appropriate binary from https://github.com/matplotlib/matplotlib/downloads/.
# Download and install numpy from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
# Download and install matplotlib from http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
 
If either of these installs fails, fear not! Wave over a staff member and we'll help.
==== Mac OS X users only ====
 
Getting matplotlib installed on OS X is unfortunately convoluted. Please wave over a staff member and we'll help you through the installation process that makes the most sense for your computing environment.
 
<b>Option 1: install binaries</b><br/>
# Follow the instructions at http://penandpants.com/2012/03/01/install-python-2/, which will walk you through installing a new Python, NumPy, SciPy, and finally matplotlib.
* Pros: you don't have to compile from source.
* Cons: you have to install a new Python, which could possibly interact negatively with existing libraries.
 
<b>Option 2: install from source</b>
# If you do not already have a C compiler installed, you'll need to install one before you install matplotlib. You have several options depending on your situation (ask a staff member for help picking one):
#* Download and install Xcode (1.5 GB) from https://developer.apple.com/xcode/
#* Download and install Command Line Tools for Xcode (175 MB) from https://developer.apple.com/downloads/index.action. This requires an Apple Developer account (free, but you have to sign up).
#* Download and install kennethreitz's gcc installer (requires OS X 10.6 or 10.7) from https://github.com/kennethreitz/osx-gcc-installer/
# Unpack the latest matplotlib tarball from http://sourceforge.net/projects/matplotlib/files/matplotlib/
# Follow the instructions in <code>README.osx</code>
* Pros: you get to use your existing Python installation.
* Cons: you have to install a C compiler and compile from source.
 
<!--
# Download and install numpy from http://sourceforge.net/projects/numpy/
# Read http://matplotlib.sourceforge.net/faq/installing_faq.html#install-osx-binaries and then download and install matplotlib from http://sourceforge.net/projects/matplotlib/files/matplotlib/
-->
 
==== Linux users only ====
 
# Install the <code>python-numpy</code> package through your package manager
# Install the <code>python-matplotlib</code> package through your package manager
 
=== 2. Download and un-archive the Matplotlib project skeleton code ===