Datasets:

ArXiv:
File size: 2,066 Bytes
3e10edb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns

# import sys; sys.path.extend(['/home/ubuntu-user/popjym-main/'])

alldata = pd.read_csv(
    "F:/Desktop/ML/Popjym/popjym/popjym/popjym/plotting/fps_data/all.csv"
)
popgymarcadedata = pd.read_csv(
    "F:/Desktop/ML/Popjym/popjym/popjym/popjym/plotting/fps_data/True_popgymarcadefpsdata.csv"
)

sns.set()
# sns.color_palette("Paired")

# plt.figure(figsize=(12, 8))
fig, axes = plt.subplots(1, 2, figsize=(24, 8), sharex=True, sharey=True)

sns.lineplot(
    data=popgymarcadedata,
    x="Num Envs",
    y="FPS",
    hue="Environment",
    marker="o",
    markersize=25,
    ax=axes[0],
    # errorbar=('ci', 95)
)
axes[0].set_xscale("log", base=2)
axes[0].set_yscale("log", base=10)
axes[0].tick_params(axis="both", which="major", labelsize=35)
axes[0].legend(title="", title_fontsize="20", fontsize="22", ncol=3)
axes[0].set_xlabel("")
axes[0].set_ylabel("")
sns.lineplot(
    data=alldata,
    x="Num Envs",
    y="FPS",
    hue="Environment",
    marker="o",
    markersize=25,
    # errorbar=('ci', 95)
    ax=axes[1],
)

axes[1].set_xscale("log", base=2)
axes[1].set_yscale("log", base=2)
axes[1].tick_params(axis="both", which="major", labelsize=35)
axes[1].legend(title="", title_fontsize="20", fontsize="22", ncol=3)
axes[1].set_xlabel("")
axes[1].set_ylabel("")
fig.text(0.55, 0.04, "Number of Parallel Environments", ha="center", fontsize=35)
fig.text(0.04, 0.6, "Frames per second", va="center", rotation="vertical", fontsize=35)

# fig.subplots_adjust(wspace=0.3)

# fig.subplots_adjust(left=0.05, wspace=0.3)
plt.tight_layout(rect=[0.07, 0.07, 1, 1])
plt.show()

# plt.xlabel('Number of Parallel Environments', fontsize=50)
# plt.ylabel('Frames per second (FPS)', fontsize=50)
# # Optionally, adjust tick label sizes
# plt.tick_params(axis='both', which='major', labelsize=50)

# plt.xscale('log', base=2)
# plt.yscale('log', base=10)

# # Show the plot
# plt.legend(title='', title_fontsize='20', fontsize='20')
# plt.tight_layout()
# # plt.savefig('POMDP.png')
# plt.show()