CPSC150A
Scientific Computing

Activity 13

Plotting

For each of the following, go to Yahoo Finance and download historical prices for a stock as a csv file. You can pick any stock and any date range you would like. To download the csv file, click on the ‘Download to Spreadsheet’ button at the bottom of the displayed table.

Plot Closing

Write a program that uses matplotlib to plot all of the closing prices in the csv file you downloaded.

Plot High & Low

Write a program that uses matplotlib to plot both all of the high prices and all of the low prices in the csv file you downloaded. The two plots should be different colors in the same figure.

Plot Histogram

Write a program that uses matplotlib to plot a histogram of all of the volume data in the csv file you downloaded.

Submission

Please show your source code and run your programs. Only programs that have perfect functionality will be accepted as complete.