diff --git a/exercises/exerciseA/plot.py b/exercises/exerciseA/plot.py index 4130224..cd1ecf2 100755 --- a/exercises/exerciseA/plot.py +++ b/exercises/exerciseA/plot.py @@ -12,10 +12,15 @@ for file in os.listdir('timings'): threads = np.array(threads) timings = np.array(timings) +indexes = np.argsort(threads) +threads= threads[indexes] +timings = timings[indexes] print('This is the data I loaded: threads =', threads, ', timings =',timings) fig, axs = plt.subplots() +plt.scatter(threads, timings) +plt.plot(threads, timings) # CREATE YOUR PLOT HERE # Remember to label your axis # Feel free to make it pretty