Skip to content
Snippets Groups Projects
Verified Commit 6342a87c authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

Measures fine tuning

parent 1e3ad4b4
Branches
No related tags found
No related merge requests found
......@@ -511,10 +511,10 @@
510,940
511,940
512,941
513,0
514,0
515,0
516,0
513,942
514,943
515,945
516,945
517,950
518,950
519,950
......
......@@ -6,16 +6,19 @@ import matplotlib.pyplot as plt
import numpy as np
if __name__ == '__main__':
results = []
plt.xlabel("Temps [s]")
plt.ylabel("Documents téléchargés [0-1000]")
plt.gcf().subplots_adjust(bottom=0.15)
plt.xticks(np.arange(0, 1000, 50), rotation=70)
plt.yticks(np.arange(0, 1000, 50))
args = sys.argv
args.pop(0)
plt.title(input("Titre ?"))
for arg in args:
results = []
with open(arg) as csvfile:
reader = csv.reader(csvfile) # change contents to floats
for row in reader: # each row is a list
......@@ -24,10 +27,7 @@ if __name__ == '__main__':
x = results[:, 0]
y = results[:, 1]
plt.plot(x, y, label=input("Titre pour données {} ?".format(arg)))
plt.xticks(np.arange(0, max(x), 10), rotation=70)
plt.yticks(np.arange(0, max(y) + 50, 50))
plt.plot(x, y)
plt.title("Performances du module FAOGeneve - NScrap")
plt.savefig(os.path.splitext(sys.argv[1])[0] + ".svg")
plt.legend()
plt.savefig("output.pdf")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment