From d56095950dd29e603520fb59c7c3dc9c28e5b8ed Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Fri, 30 Aug 2024 12:17:06 +0300 Subject: [PATCH] improve plotting code --- exercises/exerciseA/plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/exerciseA/plot.py b/exercises/exerciseA/plot.py index 4130224..31467a0 100644 --- a/exercises/exerciseA/plot.py +++ b/exercises/exerciseA/plot.py @@ -16,8 +16,8 @@ print('This is the data I loaded: threads =', threads, ', timings =',timings) fig, axs = plt.subplots() -# CREATE YOUR PLOT HERE -# Remember to label your axis -# Feel free to make it pretty +plt.plot(threads, timings, '+') +plt.xlabel('threads') +plt.ylabel('timings') plt.savefig('threads_v_timings.png', dpi=300)