diff --git a/make_plot.py b/make_plot.py index 93ab2ec..893a677 100644 --- a/make_plot.py +++ b/make_plot.py @@ -3,10 +3,12 @@ import os from astropy.io import fits import glob + data = fits.getdata('/Users/bostroem/Desktop/images/hubble_img.fits') col1 = data[20, :] col2 = data[200, :] col3 = data[800, :] + pyplot.figure() pyplot.plot(np.arange(1024), col1) mean = np.mean(col1) @@ -15,6 +17,7 @@ pyplot.title('Plot of Column 20 Values and Mean') pyplot.xlabel('Pixels') pyplot.ylabel('Intensity') + pyplot.figure() pyplot.plot(np.arange(1024), col2) mean = np.mean(col2) @@ -23,6 +26,7 @@ pyplot.title('Plot of Column 200 Values and Mean') pyplot.xlabel('Pixels') pyplot.ylabel('Intensity') + pyplot.figure() pyplot.plot(np.arange(1024), col3) mean = np.mean(col3) @@ -30,4 +34,4 @@ pyplot.legend(['Column 800', 'Mean']) pyplot.title('Plot of Column 800 Values and Mean') pyplot.xlabel('Pixels') -pyplot.ylabel('Intensity') \ No newline at end of file +pyplot.ylabel('Intensity')