@@ -117,8 +117,8 @@ import requests
117117# Download and save the data file Econ381totpts.txt
118118url = ('https://raw.githubusercontent.com/OpenSourceEcon/CompMethods/' +
119119 'main/data/maxlikeli/Econ381totpts.txt')
120- data_file = requests.get(url, allow_redirects=True)
121- open('../../../data/maxlikeli/Econ381totpts.txt', 'wb').write(data_file.content)
120+ # data_file = requests.get(url, allow_redirects=True)
121+ # open('../../../data/maxlikeli/Econ381totpts.txt', 'wb').write(data_file.content)
122122
123123# Load the data as a NumPy array
124124data = np.loadtxt('../../../data/maxlikeli/Econ381totpts.txt')
@@ -132,9 +132,9 @@ Let's create a histogram of the data.
132132import matplotlib.pyplot as plt
133133
134134num_bins = 30
135- count, bins, ignored = plt.hist(pts , num_bins, density=True,
135+ count, bins, ignored = plt.hist(data , num_bins, density=True,
136136 edgecolor='k')
137- plt.title('Econ 381 scores: 2011-2012', fontsize=20 )
137+ plt.title('Intermediate macro scores: 2011-2012', fontsize=15 )
138138plt.xlabel(r'Total points')
139139plt.ylabel(r'Percent of scores')
140140plt.xlim([0, 550]) # This gives the xmin and xmax to be plotted"
0 commit comments