From 6c41c472f7796e220d134208d0f118a2ad2c49d6 Mon Sep 17 00:00:00 2001 From: Sophie Manuel Date: Fri, 12 Feb 2021 01:13:45 +0100 Subject: [PATCH] Fix a problem with a quote and an indent problem too. --- plot.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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()