From 83160aefac0867734806d60e27f9725054e23dde Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Fri, 26 Sep 2025 12:48:41 +0300 Subject: [PATCH] plot --- exercises/exerciseA/plot.py | 5 +++++ 1 file changed, 5 insertions(+) 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