diff --git a/exercises/exerciseA/plot.py b/exercises/exerciseA/plot.py index 4130224..b764b8b 100644 --- a/exercises/exerciseA/plot.py +++ b/exercises/exerciseA/plot.py @@ -1,4 +1,5 @@ import os +import re import numpy as np import matplotlib.pyplot as plt @@ -15,7 +16,10 @@ timings = np.array(timings) print('This is the data I loaded: threads =', threads, ', timings =',timings) fig, axs = plt.subplots() - +plt.scatter(threads, timings) +plt.xlabel('Number of threads') +plt.ylabel('Time (seconds)') +#plt.show() # CREATE YOUR PLOT HERE # Remember to label your axis # Feel free to make it pretty diff --git a/exercises/exerciseA/threads_v_timings.png b/exercises/exerciseA/threads_v_timings.png new file mode 100644 index 0000000..7b72eea Binary files /dev/null and b/exercises/exerciseA/threads_v_timings.png differ