Matplotlib: Difference between revisions

Content added Content deleted
imported>Jesstess
No edit summary
imported>Jesstess
Line 13: Line 13:
== Project setup ==
== Project setup ==


==== Mac OS X users only ====
=== 1. Install the project dependencies ===


Please follow the official matplotlib installation instructions at http://matplotlib.sourceforge.net/users/installing.html
If you do not already have a C compiler installed, you'll need one to install matplotlib. You have several options depending on your situation:

The dependencies vary across operating systems. http://matplotlib.sourceforge.net/users/installing.html#build-requirements summarizes what you'll need for your operating system. We also give specific recommendations for each platform below.

Installing matplotlib and its dependencies is somewhat involved; please ask for help if you get stuck or don't know where to start!

==== Mac OS X users only ====
<!--
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:
# Download and install Xcode (1.5 GB) from https://developer.apple.com/xcode/
# 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 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).
Line 21: Line 29:


Please wave over a staff member and we'll help you pick which option is best for you computer.
Please wave over a staff member and we'll help you pick which option is best for you computer.
-->


# Download and install numpy from http://sourceforge.net/projects/numpy/
=== 1. Install the project dependencies ===
# 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/


==== Windows users only ====
Please follow the official matplotlib installation instructions at http://matplotlib.sourceforge.net/users/installing.html


# Download and install numpy from http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
The dependencies vary across operating systems. http://matplotlib.sourceforge.net/users/installing.html#build-requirements summarizes what you'll need for your operating system.
# Download and install matplotlib from http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib


==== Linux users only ====
A universal dependency is the NumPy scientific computing library. NumPy has download and installation instructions at http://numpy.scipy.org/


# Install the <code>python-numpy</code> package through your package manager
Installing matplotlib and its dependencies is somewhat involved; please ask for help if you get stuck or don't know where to start!
# Install the <code>python-matplotlib</code> package through your package manager


=== 2. Download and un-archive the Matplotlib project skeleton code ===
=== 2. Download and un-archive the Matplotlib project skeleton code ===
Line 41: Line 53:


Run the <code>basic_plot.py</code> script in your <code>Matplotlib</code> directory. A window with a graph should pop up.
Run the <code>basic_plot.py</code> script in your <code>Matplotlib</code> directory. A window with a graph should pop up.



== Project steps ==
== Project steps ==