Example ``` plt.figure(figsize=(3.5, 3.5), dpi = 200) ax = plt.subplot(111) keys = ['cebra', 'pivae', 'autolfads', 'tsne', 'umap'] df = pd.DataFrame(synthetic_scores) sns.stripplot(data=df[keys] * 100, color="black", s=3, zorder=1, jitter=0.15) sns.scatterplot(data=df[keys].median() * 100, color="orange", s=50) plt.ylabel("$R^2$", fontsize=20) plt.yticks( np.linspace(0, 100, 11, dtype=int), np.linspace(0, 100, 11, dtype=int), fontsize=20 ) plt.ylim(70, 100) ax.spines["right"].set_visible(False) ax.spines["top"].set_visible(False) ax.tick_params(axis="both", which="major", labelsize=15) ax.tick_params(axis = 'x', rotation = 45) ax.set_xticklabels( ['CEBRA', 'piVAE', 'autoLFADS', 'tSNE', 'UMAP'], ) sns.despine( left=False, right=True, bottom=False, top=True, trim=True, offset={"bottom": 40, "left": 15}, ) plt.savefig('figure1_synthetic_comparison.jpg', bbox_inches = "tight", transparent = True) plt.savefig('figure1_synthetic_comparison.svg', bbox_inches = "tight", transparent = True) ```
Activity