Prep for Class
- Reread the MatPlotLib tutorial, paying special attention to the histogram example.
Key Ideas
- The information to be visualized can come from an input file.
In-Class Activity
- The file montana_data.txt contains census data from this source.
- The program montana.py displays this data. Make sure you fully understand how this program works.
Active Learning
- Modify the program above so that it shows the net population increase (or decrease) from one census date to the next in a second figure. (The first figure should continue to show the original graph.)
- Time permitting, add a third figure that displays the data in some other interesting manner.