mirror of
https://github.com/logos-messaging/research.git
synced 2026-01-09 01:23:09 +00:00
Cumulative instead of num samples
This commit is contained in:
parent
250d5802b2
commit
3b2ba97a83
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 119 KiB |
@ -32,7 +32,7 @@ with plt.style.context(['science', 'ieee']):
|
|||||||
|
|
||||||
for (size, pos) in possitions:
|
for (size, pos) in possitions:
|
||||||
# Plot single host results
|
# 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
|
# Plot multi host results
|
||||||
pos.axvline(x=multi_host_simulations[size][0], color='red', linestyle='--')
|
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())
|
max=latencies[size].max())
|
||||||
pos.set_title(title, fontsize=8)
|
pos.set_title(title, fontsize=8)
|
||||||
|
|
||||||
ax[0][0].set(ylabel='Amount messages')
|
ax[0][0].set(ylabel='Cumulative message share')
|
||||||
ax[1][0].set(xlabel='Latency (ms)', ylabel='Amount messages')
|
ax[1][0].set(xlabel='Latency (ms)', ylabel='Cumulative message share')
|
||||||
ax[1][1].set(xlabel='Latency (ms)')
|
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.set_size_inches(4, 3)
|
||||||
fig.savefig('paper_distribution.svg', dpi=600)
|
fig.savefig('paper_distribution.svg', dpi=600)
|
||||||
Loading…
x
Reference in New Issue
Block a user