|
@@ -10,7 +10,7 @@ from stats import parseData
|
|
|
|
|
|
|
|
bar_width = 0.25
|
|
bar_width = 0.25
|
|
|
index = []
|
|
index = []
|
|
|
-def plot(process_data, title):
|
|
|
|
|
|
|
+def plot(process_data, title, filename):
|
|
|
fig, ax = plt.subplots(figsize=(10,5))
|
|
fig, ax = plt.subplots(figsize=(10,5))
|
|
|
|
|
|
|
|
task_output = []
|
|
task_output = []
|
|
@@ -55,15 +55,13 @@ def plot(process_data, title):
|
|
|
for i in range(len(process_data))])
|
|
for i in range(len(process_data))])
|
|
|
|
|
|
|
|
for tick in ax.xaxis.get_major_ticks():
|
|
for tick in ax.xaxis.get_major_ticks():
|
|
|
- tick.label.set_fontsize(9)
|
|
|
|
|
|
|
+ tick.label.set_fontsize(8)
|
|
|
|
|
|
|
|
- plt.legend()
|
|
|
|
|
|
|
+ plt.legend(loc="best")
|
|
|
|
|
|
|
|
plt.tight_layout()
|
|
plt.tight_layout()
|
|
|
plt.grid()
|
|
plt.grid()
|
|
|
- filename='out.png'
|
|
|
|
|
plt.savefig(filename)
|
|
plt.savefig(filename)
|
|
|
- print("salida: %s" % filename)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def meanLatency(pl):
|
|
def meanLatency(pl):
|
|
@@ -119,7 +117,7 @@ try:
|
|
|
data = open(sys.argv[1]).read()
|
|
data = open(sys.argv[1]).read()
|
|
|
j = json.loads(data)
|
|
j = json.loads(data)
|
|
|
index = [ 1.5*i for i in list(range(len(j["list"]))) ]
|
|
index = [ 1.5*i for i in list(range(len(j["list"]))) ]
|
|
|
- plot(j["list"],j["title"])
|
|
|
|
|
|
|
+ plot(j["list"],j["title"], j["filename"])
|
|
|
except Exception as e:
|
|
except Exception as e:
|
|
|
print("Exception")
|
|
print("Exception")
|
|
|
print(data)
|
|
print(data)
|