Skip to content
Snippets Groups Projects
Commit c0237544 authored by Nicki Křížek's avatar Nicki Křížek
Browse files

Merge branch 'connections-axis-limits' into 'master'

plot-connections: set axis limits properly

See merge request !66
parents 2da39bfd bdc0424f
No related branches found
No related tags found
1 merge request!66plot-connections: set axis limits properly
Pipeline #103825 passed
......@@ -66,8 +66,6 @@ def plot(ax, data, label, eval_func, min_timespan=0, color=None):
yvalues.append(eval_func(stats))
ax.plot(xvalues, yvalues, label=label, marker='o', linestyle='--', color=color)
ax.set_xlim(xmin=0)
ax.set_ylim(ymin=0)
def main():
......@@ -127,6 +125,10 @@ def main():
plot(ax, data, label=f'Failed Handshakes ({name})', color=next(COLOR_FAILED_HS),
eval_func=lambda stats: stats['conn_handshakes_failed'])
# set axis boundaries
ax.set_xlim(xmin=0)
ax.set_ylim(ymin=0)
plt.legend()
plt.savefig(args.output)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment