From OpenHatch wiki

Howdy very nice web site!! Guy .. Excellent .. Superb .. I'll bookmark your web site and take the feeds additionallyI am glad to search out so many helpful info here in the put up, we want develop more techniques in this regard, thanks for sharing. eebdadceckddebdg

Very nice site!

Very nice site!

Very nice site!

Bonus exercises

1. Letter frequency analysis of the US Constitution

  1. Run python It will generate a bar chart showing the frequency of each letter in the alphabet in the US Constitution.
  2. Open and read through The code for gathering and displaying the frequencies is a bit more complicated than the previous scripts in this projects, but try to trace the general strategy for plotting the data. Be sure to read the comments!
  3. Try to answer the following questions:
    1. On line 11, what is string.ascii_lowercase?
    2. On line 18, what is the purpose of char = char.lower()?
    3. What are the contents of labels after the for loop on line 30 completes?
    4. On line 41, what are the two arguments passed to pyplot.xticks
    5. On line 44, we use instead of our usual pyplot.plot. What are the 3 arguments passed to
  4. We've included a mystery text file mystery.txt: an excerpt from an actual novel. Alter to process the data in mystery.txt instead of constitution.txt, and re-run the script. What do you notice that is odd about this file? You can read more about this odd novel here.

2. Tour the matplotlib gallery

You can truly make any kind of graph with matplotlib. You can even create animated graphs. Check out some of the amazing possibilities, including their source code, at the matplotlib gallery:

Matplotlib gallery.png


You've read, modified, and created scripts that plot and analyze data using matplotlib. Keep practicing!

Fireworks.png Balloons.png