in src/alpaca_eval/plotting.py [0:0]
def plot_paired_ttests(df):
df_ttest = _get_ttest_df(df)
fig, ax = plt.subplots(nrows=1, ncols=1, figsize=(10, 15))
with plot_config(font_scale=0.4):
g = sns.heatmap(
df_ttest.astype(float),
annot=True,
fmt=".2f",
cbar=False,
square=True,
xticklabels=False,
ax=ax,
mask=np.triu(np.ones_like(df_ttest, dtype=bool)),
cmap=sns.color_palette("rocket", as_cmap=True),
)
g.set(xlabel="", ylabel="")
plt.show()
return g