Skip to content
Snippets Groups Projects
Commit 82c548dd authored by shunhan2's avatar shunhan2
Browse files

Upload New File

parent 88f8cd2f
No related branches found
No related tags found
No related merge requests found
Pipeline #154160 canceled
import os
import matplotlib.pyplot as plt
import numpy as np
whole = []
with open ('bandwidth_node4.log', 'r') as f:
a = f.readlines()
for i in a:
whole.append(round(float(i.split("-----")[0])))
x = [i for i in range(len(whole))]
plt.figure()
plt.plot(x, whole, linewidth=1)
plt.title("bandwidth of one node")
plt.xlabel("number of transactions")
plt.ylabel("bandwidth (trans per sec)")
plt.show()
\ No newline at end of file
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