Edit main.py -> use of plot instead of scatter and added ylim
This commit is contained in:
parent
0fceb13d48
commit
47755c46b7
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user