diff --git a/make_plot.py b/make_plot.py index 0a1b091..20e0238 100644 --- a/make_plot.py +++ b/make_plot.py @@ -11,8 +11,8 @@ pyplot.figure() pyplot.plot(np.arange(1024), col1) -mean = np.mean(col1) -pyplot.axhline(mean) +avg1 = np.mean(col1) +pyplot.axhline(avg1) pyplot.legend(['Column 20', 'Mean']) pyplot.title('Plot of Column 20 Values and Mean') pyplot.xlabel('Pixels') @@ -20,8 +20,8 @@ pyplot.figure() pyplot.plot(np.arange(1024), col2) -mean = np.mean(col2) -pyplot.axhline(mean) +avg2 = np.mean(col2) +pyplot.axhline(avg2) pyplot.legend(['Column 200', 'Mean']) pyplot.title('Plot of Column 200 Values and Mean') pyplot.xlabel('Pixels') @@ -29,8 +29,8 @@ pyplot.figure() pyplot.plot(np.arange(1024), col3) -mean = np.mean(col3) -pyplot.axhline(mean) +avg3 = np.mean(col3) +pyplot.axhline(avg3) pyplot.legend(['Column 800', 'Mean']) pyplot.title('Plot of Column 800 Values and Mean') pyplot.xlabel('Pixels')