Skip to content

Commit

Permalink
added white space for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
katiechambe committed Nov 5, 2023
1 parent 9c03af0 commit 5fa271b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -23,11 +26,12 @@
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)
pyplot.axhline(mean)
pyplot.legend(['Column 800', 'Mean'])
pyplot.title('Plot of Column 800 Values and Mean')
pyplot.xlabel('Pixels')
pyplot.ylabel('Intensity')
pyplot.ylabel('Intensity')

0 comments on commit 5fa271b

Please sign in to comment.