[54ded2]: / experiments / simulations / plot_time_experiment_results.py

Download this file

25 lines (20 with data), 648 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from plottify import autosize
import matplotlib
font = {"size": 30}
matplotlib.rc("font", **font)
matplotlib.rcParams["text.usetex"] = True
results = pd.read_csv("./out/time_experiment_results.csv")
results["value"] /= 60.0
plt.figure(figsize=(10, 5))
g = sns.lineplot(data=results, x="variable", y="value", hue="method")
g.legend_.set_title(None)
plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.0)
plt.xlabel("Number of samples")
plt.ylabel("Time (mins.)")
autosize()
plt.savefig("./out/time_experiment_plot.png")
plt.show()
# import ipdb; ipdb.set_trace()