Chapter 9. Plotting with matplotlib
matplotlib
is a very useful Python plotting library. It integrates nicely with NumPy but is a separate open source project. You can find a gallery of beautiful examples at http://matplotlib.org/gallery.html.
matplotlib
also has utility functions to download and manipulate data from Yahoo Finance. We will see several examples of stock charts.
This chapter features extended coverage of the following topics:
Simple plots
Subplots
Histograms
Plot customization
Three-dimensional plots
Contour plots
Animation
Logplots