|
32 | 32 | ["wren", "voronoi", "cgcnn"],
|
33 | 33 | ["tab:blue", "tab:orange", "tab:red"],
|
34 | 34 | ):
|
35 |
| - df = pd.read_csv(f"{ROOT}/data/{model_name}-mp-initial-structures.csv").set_index( |
36 |
| - "material_id" |
37 |
| - ) |
| 35 | + df = pd.read_csv(f"{ROOT}/data/{model_name}-mp-initial-structures.csv") |
| 36 | + df = df.set_index("material_id") |
38 | 37 |
|
39 | 38 | df["e_above_hull"] = df_hull.e_above_hull
|
40 | 39 |
|
|
122 | 121 | ax.plot(x[::100], f_ppv(x[::100]), linestyle="-", **line_kwargs)
|
123 | 122 |
|
124 | 123 |
|
125 |
| -# ax.set_xticks((0, 2.5e4, 5e4, 7.5e4)) |
126 |
| -ax.set_xticks((0, 2e4, 4e4, 6e4, 8e4)) |
127 |
| - |
128 |
| -ax.set_ylabel("Percentage") |
129 |
| -ax.set_xlabel("Number of Calculations") |
| 124 | +ax.set(xlabel="Number of Calculations", ylabel="Percentage") |
130 | 125 |
|
131 |
| -ax.set_xlim((0, 8e4)) |
132 |
| -# ax.set_xlim((0, 75000)) |
133 |
| -ax.set_ylim((0, 100)) |
| 126 | +ax.set(xlim=(0, 8e4), ylim=(0, 100), xticks=(0, 2e4, 4e4, 6e4, 8e4)) |
134 | 127 |
|
135 | 128 | ax.plot((-1, -1), (-1, -1), color="tab:blue")
|
136 | 129 | ax.plot((-1, -1), (-1, -1), color="tab:red")
|
|
155 | 148 | )
|
156 | 149 |
|
157 | 150 | ax.add_artist(legend1)
|
158 |
| -# plt.gca().add_artist(legend1) |
159 | 151 |
|
160 | 152 | ax.set_aspect(1.0 / ax.get_data_ratio())
|
161 | 153 |
|
|
0 commit comments