From 47755c46b74ff75e44343b9a818bbae4dce0ca04 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Thu, 13 Apr 2023 11:37:13 +0200 Subject: [PATCH] Edit main.py -> use of plot instead of scatter and added ylim --- plot/main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plot/main.py b/plot/main.py index f015326..f60ff1a 100644 --- a/plot/main.py +++ b/plot/main.py @@ -56,19 +56,22 @@ delays = delay(np_arr) delays.sort(axis=0) # Data for plotting averages.sort(axis=0) +available.sort(axis=0) del np_arr fig, ax = plt.subplots(2, 2) -ax[0, 0].scatter(averages[:, 0], averages[:, 1]) +ax[0, 0].plot(averages[:, 0], averages[:, 1], marker="o") ax[0, 0].set(xlabel='number of users', ylabel='Efficacité spectrale', title='Efficacité spectrale') ax[0, 0].grid() +ax[0, 0].set_ylim([24, 32]) -ax[0, 1].scatter(available[:, 0], available[:, 1]) +ax[0, 1].plot(available[:, 0], available[:, 1], marker="o") ax[0, 1].set(xlabel='number of users', ylabel='RB utilisés', title='Pourcentage de RB utilisés') ax[0, 1].grid() +ax[0, 1].set_ylim([0, 205]) -ax[1, 0].scatter(delays[:, 0], delays[:, 1]) +ax[1, 0].plot(delays[:, 0], delays[:, 1], marker="o") ax[1, 0].set(xlabel='number of users', ylabel='delays(ms)', title='Delay') ax[1, 0].grid()