Cumulative instead of num samples

This commit is contained in:
alrevuelta 2024-02-23 10:57:45 +01:00
parent 250d5802b2
commit 3b2ba97a83
No known key found for this signature in database
GPG Key ID: F345C9F3CCDB886E
2 changed files with 1641 additions and 1691 deletions

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB

View File

@ -32,7 +32,7 @@ with plt.style.context(['science', 'ieee']):
for (size, pos) in possitions:
# Plot single host results
latencies.hist(size, bins=num_bins, ax=pos)
latencies.hist(size, bins=num_bins, ax=pos, density=True)
# Plot multi host results
pos.axvline(x=multi_host_simulations[size][0], color='red', linestyle='--')
@ -47,10 +47,10 @@ with plt.style.context(['science', 'ieee']):
max=latencies[size].max())
pos.set_title(title, fontsize=8)
ax[0][0].set(ylabel='Amount messages')
ax[1][0].set(xlabel='Latency (ms)', ylabel='Amount messages')
ax[0][0].set(ylabel='Cumulative message share')
ax[1][0].set(xlabel='Latency (ms)', ylabel='Cumulative message share')
ax[1][1].set(xlabel='Latency (ms)')
plt.tight_layout(pad=0, w_pad=0.1, h_pad=0.1)
plt.tight_layout(pad=0, w_pad=0, h_pad=0.7)
fig.set_size_inches(4, 3)
fig.savefig('paper_distribution.svg', dpi=600)