Community Data Science Workshops (Fall 2014)/Day 3 projects/Matplotlib Session: Difference between revisions

no edit summary
imported>Mako
imported>Mako
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{CDSW Moved}}
 
[[File:Matplotlib-hist2d.png|right|500px]]
__NOTOC__
Line 5 ⟶ 7:
In this session, 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 DBpedia], containing the names, birth dates, genders, article creation dates, and number of edits, of over 180,000 Wikipedia biography articles.
 
The dataset used here has been drawn from several sources. The list of biographies and the gender of the biography subjects comes from a datbase called [http://dbpedia.org DBpedia] that is a structured database built from Wikipedia. If determines if articles are biographies from the Wikipedia category system and it determines if the subjects are male or female primarily by looking at whether subject is referred to as ''he'' or ''she'' in the article. Birthdates for people are extracted from the data recorded in Wikipedia in the "infobox" sidebars common to many pages. Data on how people edit Wikipedia is merged onto this dataset from a separate collection of metadata of Wikipedia editing very similar to the one we built for Harry Potter articles the morning.
 
=== Goals ===
Line 23 ⟶ 27:
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.
 
WikibiosBundle bundlewith code for all platforms: [http://mako.cc/teaching/2014/cdsw-autumn/wikibios.zip old mirror]
 
=== References ===
Anonymous user