From 4dc25571f88f7cb1de54aba0a685491a8ec577b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20=C3=96rtenberg?= Date: Mon, 16 Jun 2025 15:06:14 +0200 Subject: [PATCH] zoomed in on shyloc results --- plots/shyloc_results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plots/shyloc_results.py b/plots/shyloc_results.py index d83433b..8570624 100644 --- a/plots/shyloc_results.py +++ b/plots/shyloc_results.py @@ -12,7 +12,7 @@ configs = { } x = np.arange(len(packet_sizes)) # the label locations -ys = np.arange(0,3,0.125) +ys = np.arange(0,1,2**-5) width = 0.25 # the width of the bars multiplier = 0 @@ -24,7 +24,7 @@ for attribute, measurement in configs.items(): ##ax.bar_label(rects, padding=15+multiplier*40,fontsize=text_size) multiplier += 1 -plt.plot([-0.125,5.625],[0.4419,0.4419],lw=stroke) +plt.plot([-0.125,5.625],[0.4419,0.4419],lw=stroke, label="Ideal") # Add some text for labels, title and custom x-axis tick labels, etc. ax.set_ylabel('Throughput (B/C)',fontsize=text_size) ax.set_xlabel('Packet Size (B/P)',fontsize=text_size) @@ -32,6 +32,6 @@ ax.set_title('Throughput during SHyLoC compression (1904B uncompressed, 1664B co ax.set_xticks(x + width, packet_sizes,fontsize=text_size) ax.set_yticks(ys, ys,fontsize=text_size) ax.legend(loc='upper left', ncols=2,fontsize=text_size) -ax.set_ylim(0, 1) +ax.set_ylim(0.4, 0.47) plt.show()