From 1a35567810225dfd41f25e3a6475eb8c65e52b38 Mon Sep 17 00:00:00 2001 From: Anas Zakroum Date: Sun, 31 Jan 2021 23:06:03 +0100 Subject: [PATCH 1/2] added missing punctuation in plt argument facecolor, line 8 --- plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.py b/plot.py index 8f62462..b74a879 100644 --- a/plot.py +++ b/plot.py @@ -5,7 +5,7 @@ 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') From df13b948d85c3e2ede5d61d8bbdfb1a6e59beab0 Mon Sep 17 00:00:00 2001 From: Anas Zakroum Date: Sun, 31 Jan 2021 23:37:22 +0100 Subject: [PATCH 2/2] removed multiple unexpected indents --- plot.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plot.py b/plot.py index b74a879..c0e0411 100644 --- a/plot.py +++ b/plot.py @@ -7,11 +7,11 @@ # the histogram of the data 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()