diff --git a/plot.py b/plot.py index 8f62462..c0e0411 100644 --- a/plot.py +++ b/plot.py @@ -5,13 +5,13 @@ x = np.loadtxt('file_data.csv') # the histogram of the data -n, bins, patches = plt.hist(x, 50, density=True, facecolor='r, alpha=0.74) +n, bins, patches = plt.hist(x, 50, density=True, facecolor='r', alpha=0.74) - plt.xlabel('Smarts') - plt.ylabel('Probability') - plt.title('Histogram of IQ') - plt.text(60, .025, r'$\mu=100,\ \sigma=15$') - plt.xlim(40, 160) - plt.ylim(0, 0.03) - plt.grid(True) - plt.show() +plt.xlabel('Smarts') +plt.ylabel('Probability') +plt.title('Histogram of IQ') +plt.text(60, .025, r'$\mu=100,\ \sigma=15$') +plt.xlim(40, 160) +plt.ylim(0, 0.03) +plt.grid(True) +plt.show()