From 8e3534cfe574f95f5c7cba855002fa8454b7c7b6 Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Fri, 30 Aug 2024 12:18:41 +0300 Subject: [PATCH] plot threads vs timing data --- exercises/exerciseA/plot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises/exerciseA/plot.py b/exercises/exerciseA/plot.py index 4130224..d09d577 100644 --- a/exercises/exerciseA/plot.py +++ b/exercises/exerciseA/plot.py @@ -14,10 +14,13 @@ timings = np.array(timings) print('This is the data I loaded: threads =', threads, ', timings =',timings) -fig, axs = plt.subplots() +fig, ax = plt.subplots(1, 1) # CREATE YOUR PLOT HERE # Remember to label your axis # Feel free to make it pretty +plt.subplot +ax.scatter(threads, timings) +plt.show() plt.savefig('threads_v_timings.png', dpi=300) -- 2.39.5