From 5fa271b8c7b9ee7419eba6cfbc4c98c3c436d1dd Mon Sep 17 00:00:00 2001 From: katiechambe Date: Sun, 5 Nov 2023 15:05:30 -0700 Subject: [PATCH] added white space for readability --- make_plot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')