added dashed lines to throughput results
This commit is contained in:
parent
4dc25571f8
commit
64dfab39a7
@ -3,15 +3,15 @@ import numpy as np
|
|||||||
|
|
||||||
## Bar diagram chunked on different parameters.
|
## Bar diagram chunked on different parameters.
|
||||||
text_size = 30
|
text_size = 30
|
||||||
stroke = 2
|
stroke = 4
|
||||||
marker_width = 8
|
marker_width = 8
|
||||||
packet_sizes = (4,8,16,32,64,128)
|
packet_sizes = (4,8,16,32,64,128)
|
||||||
configs = {
|
configs = {
|
||||||
'Single Issue' : ('X',marker_width,(0.4414, 0.6095, 0.7529, 0.8312, 0.8889, 0.9275)),
|
'Single Issue' : ('X',marker_width, stroke, False, (0.4414, 0.6095, 0.7529, 0.8312, 0.8889, 0.9275)),
|
||||||
'Performance Optimized' : ('s',marker_width,(0.4211, 0.6957, 1.0323, 1.3333, 1.5799, 1.7527)),
|
'Performance Optimized' : ('s',marker_width+4,stroke, False, (0.4211, 0.6957, 1.0323, 1.3333, 1.5799, 1.7527)),
|
||||||
'Resource Utilization Optimized': ('^',marker_width-4,(0.4211, 0.6957, 1.0323, 1.3333, 1.5799, 1.7527)),
|
'Resource Utilization Optimized': ('^',marker_width, stroke, True , (0.4211, 0.6957, 1.0323, 1.3333, 1.5799, 1.7527)),
|
||||||
'Ideal Addressed' : ('o',marker_width,(0.5714, 0.8889, 1.2308, 1.5238, 1.7297, 1.8551)),
|
'Ideal Addressed' : ('o',marker_width, stroke, False, (0.5714, 0.8889, 1.2308, 1.5238, 1.7297, 1.8551)),
|
||||||
# 'Ideal non-Addressed' : ('v',marker_width,(1.3333, 1.6000, 1.7778, 1.8824, 1.9394, 1.9692)),
|
'Ideal non-Addressed' : ('v',marker_width, stroke, False, (1.3333, 1.6000, 1.7778, 1.8824, 1.9394, 1.9692)),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -22,8 +22,11 @@ multiplier = 0
|
|||||||
|
|
||||||
fig, ax = plt.subplots(layout='constrained')
|
fig, ax = plt.subplots(layout='constrained')
|
||||||
|
|
||||||
for attribute, (marker, lw, measurement) in configs.items():
|
for attribute, (marker, lw, st, isDashed ,measurement) in configs.items():
|
||||||
ax.plot(packet_sizes, measurement, label=attribute, marker=marker, lw=stroke, mew=lw)
|
if isDashed:
|
||||||
|
ax.plot(packet_sizes, measurement, label=attribute, marker=marker, dashes=[2,2], lw=st, mew=lw)
|
||||||
|
else:
|
||||||
|
ax.plot(packet_sizes, measurement, label=attribute, marker=marker, lw=st, mew=lw)
|
||||||
|
|
||||||
# Add some text for labels, title and custom x-axis tick labels, etc.
|
# Add some text for labels, title and custom x-axis tick labels, etc.
|
||||||
ax.set_ylabel('Throughput (B/C)',fontsize=text_size)
|
ax.set_ylabel('Throughput (B/C)',fontsize=text_size)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user