Anonymous user
Community Data Science Workshops (Spring 2014)/Saturday May 31st Matplotlib Session: Difference between revisions
Community Data Science Workshops (Spring 2014)/Saturday May 31st Matplotlib Session (view source)
Revision as of 22:11, 15 March 2015
, 9 years agomoved to wiki.communitydata.cc
imported>Bemasc (Created page with "right|250px __NOTOC__ == Visualizing data with Matplotlib and Wiki-bios == In this project, we will explore how to produce clear, informative charts, g...") |
imported>Jtmorgan m (moved to wiki.communitydata.cc) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1:
{{CDSW Moved}}
[[File:Wikipedia.png|right|250px]]▼
[[File:Matplotlib-hist2d.png|right|500px]]
__NOTOC__
== Visualizing data with Matplotlib and Wiki-bios ==
Line 5 ⟶ 6:
In this project, we will explore how to produce clear, informative charts, graphs, and plots with [http://matplotlib.org/ Matplotlib], the most popular toolkit for scientific data visualization in Python.
We'll be focusing on a dataset drawn from Wikipedia and [http://dbpedia.org
=== Goals ===
Line 17 ⟶ 18:
* Exercise your creativity by making your own visualization
===
If you installed Anaconda, you are good to go. All Windows users have already installed Anaconda.
If you are running OSX, and have not yet [[Windows set up Python (Anaconda)#Download and install Python|installed Anaconda]], please do. You can follow these instructions for Windows users, but make sure you select the right version of Anaconda for your system.
On a Linux system, you'll need to install some dependencies (e.g. for Debian-based systems):
<pre>
sudo apt-get install python-matplotlib python-tk
</pre>
=== Download and test the Matplotlib-with-Wiki-bios project ===
Line 27 ⟶ 36:
After installing matplotlib, and downloading and unpacking the Wikibios bundle, move into that directory with '''cd'''. You can test your installation by running '''python histograms.py'''. If matplotlib is install correcting, a chart file named '''histograms.pdf''' will appear in the current directory.
[http://mako.cc/teaching/2014/cdsw/wikibios.zip Wikibios bundle for all platforms]
=== Example topics to cover in Lecture ===
Line 38 ⟶ 47:
* axis labeling
* legends
▲[[File:Wikipedia.png|right|250px]]
|