plot time as a function of threads (exercise A) #3
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
|
@ -15,7 +16,10 @@ timings = np.array(timings)
|
||||||
print('This is the data I loaded: threads =', threads, ', timings =',timings)
|
print('This is the data I loaded: threads =', threads, ', timings =',timings)
|
||||||
|
|
||||||
fig, axs = plt.subplots()
|
fig, axs = plt.subplots()
|
||||||
|
plt.scatter(threads, timings)
|
||||||
|
plt.xlabel('Number of threads')
|
||||||
|
plt.ylabel('Time (seconds)')
|
||||||
|
#plt.show()
|
||||||
# CREATE YOUR PLOT HERE
|
# CREATE YOUR PLOT HERE
|
||||||
# Remember to label your axis
|
# Remember to label your axis
|
||||||
# Feel free to make it pretty
|
# Feel free to make it pretty
|
||||||
|
|
Loading…
Reference in a new issue