Matplotlib: Difference between revisions

1,400 bytes removed ,  7 years ago
imported>Jesstess
 
(8 intermediate revisions by 8 users not shown)
Line 1:
[[File:grid.png|right|300px]]
 
Very nice site!
== Project ==
 
Very nice site!
Learn how to plot data with the matplotlib plotting library. Ditch Excel forever!
 
Very nice site!
== Goals ==
 
* practice reading data from a file
* practice using the matplotlib Python plotting library to analyze data and generate graphs
 
 
== Project setup ==
 
=== 1. Install the project dependencies ===
 
Installing matplotlib is unfortunately rather complicated on OSX and Windows. Please 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/.
 
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/.
 
If either of these installs fails, fear not! Wave over a staff member and we'll help.
 
=== 2. Download and un-archive the Matplotlib project skeleton code ===
 
* http://web.mit.edu/jesstess/www/IntermediatePythonWorkshop/Matplotlib.zip
 
Un-archiving will produce a <code>Matplotlib</code> folder containing several Python and text files.
 
=== 3. Test your setup ===
 
Run the <code>basic_plot.py</code> script in your <code>Matplotlib</code> directory. A window with a graph should pop up.
 
== Project steps ==
Anonymous user