HW8 Complete

This commit is contained in:
2020-03-25 22:08:20 -06:00
parent 117ffcb5fb
commit 02d74cfd9a
4003 changed files with 1124519 additions and 1 deletions

27
matPlotLib/main.py Normal file
View File

@@ -0,0 +1,27 @@
import matplotlib.pyplot as plt
import math
import re
import numpy as np
def main():
with open ("../HW8/results.txt") as myFile:
data = [line.split() for line in myFile]
myFile.close()
_size = []
_time = []
for d in data:
_size.append(int(d[1]))
_time.append(float(d[3]))
plt.plot(_size, _time, color='green', label="FFT")
plt.yscale('log')
plt.xscale('log', basex=2)
plt.xlabel('Highest Power')
plt.ylabel('Run Time (seconds)')
plt.title("FFT Algorithm")
plt.legend()
plt.savefig("test.png")
plt.show()
main()