Skip to content
Snippets Groups Projects
Commit cf570971 authored by Grant David Meadors's avatar Grant David Meadors
Browse files

Successfully made python histogram

parent 76b5f5e0
No related branches found
No related tags found
No related merge requests found
...@@ -216,19 +216,26 @@ def combSpectrum(targetDirectory, flag): ...@@ -216,19 +216,26 @@ def combSpectrum(targetDirectory, flag):
#plt.savefig(graphTitleBeforeAfter + '.pdf') #plt.savefig(graphTitleBeforeAfter + '.pdf')
#plt.legend #plt.legend
#plt.close() #plt.close()
histBins = 1e-24 * np.arange(50., 101.)
plt.figure() plt.figure()
p0 = plt.scatter(timeArray, beforeArray[:, 27], color='b') #p0 = plt.scatter(timeArray, beforeArray[:, 27], color='b')
#p0 = plt.hist(beforeArray[:, 27], histBins)
p1 = plt.hist(afterArray[:, 27], histBins)
plt.grid(True) plt.grid(True)
plt.savefig(graphWholeRun + '.png') plt.xlabel('Hoft')
plt.savefig(graphWholeRun + '.pdf') plt.ylabel('Histogram count (1e-24 bins from 5e-23 to 1e-24)')
plt.title('850 Hz comb histogram after feedforward')
#plt.legend([p0, p1], ['Before', 'After'])
plt.savefig(graphWholeRun + 'Histogram.png')
plt.savefig(graphWholeRun + 'Histogram.pdf')
plt.close() plt.close()
# Uncomment below to test on one directory only: # Uncomment below to test on one directory only:
combSpectrum('/home/pulsar/public_html/feedforward/diagnostics/LHO/H-H1_AMPS_C02_L2-9326/', 'one') #combSpectrum('/home/pulsar/public_html/feedforward/diagnostics/LHO/H-H1_AMPS_C02_L2-9326/', 'one')
#combSpectrum('/home/pulsar/feedforward/2012/10/25/AMPS/files_for_comb/', 'one') #combSpectrum('/home/pulsar/feedforward/2012/10/25/AMPS/files_for_comb/', 'one')
# Uncomment below to test all directories and produce a whole-run overview. # Uncomment below to test all directories and produce a whole-run overview.
#grandTarget = '/home/pulsar/public_html/feedforward/diagnostics/LHO/' grandTarget = '/home/pulsar/public_html/feedforward/diagnostics/LHO/'
#combSpectrum(grandTarget, 'all') combSpectrum(grandTarget, 'all')
# Uncomment below to test each directory, making plots one-by-one. # Uncomment below to test each directory, making plots one-by-one.
#grandTarget = '/home/pulsar/public_html/feedforward/diagnostics/LHO' #grandTarget = '/home/pulsar/public_html/feedforward/diagnostics/LHO'
#highDirectoryList = os.listdir(grandTarget) #highDirectoryList = os.listdir(grandTarget)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment