Matplotlib: Difference between revisions
Content added Content deleted
imported>Jesstess No edit summary |
imported>Jesstess |
||
Line 13: | Line 13: | ||
== Project setup == |
== Project setup == |
||
=== 1. Install the project dependencies === |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
==== Mac OS X users only ==== |
|||
<!-- |
|||
⚫ | |||
# 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 ==== |
|||
⚫ | |||
# 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 |
|||
==== 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 |
|||
⚫ | |||
# 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 == |