Skip to content

Commit

Permalink
Fix seaborn syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo authored and daxpryce committed Sep 16, 2022
1 parent d992701 commit dc0a566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/embedding/CovariateAssistedEmbed.ipynb
Expand Up @@ -139,7 +139,7 @@
"def plot_latents(latent_positions, *, title, labels, ax=None):\n",
" if ax is None:\n",
" ax = plt.gca()\n",
" plot = sns.scatterplot(latent_positions[:, 0], latent_positions[:, 1], hue=labels, \n",
" plot = sns.scatterplot(x=latent_positions[:, 0], y=latent_positions[:, 1], hue=labels, \n",
" linewidth=0, s=10, ax=ax, palette=\"Set1\")\n",
" plot.set_title(title, wrap=True);\n",
" ax.axes.xaxis.set_visible(False)\n",
Expand Down

0 comments on commit dc0a566

Please sign in to comment.