Skip to content

Commit 6dcf861

Browse files
authored
fixed documentation
1 parent 049ddd6 commit 6dcf861

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/notebooks/distances.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@
451451
"source": [
452452
"plt.scatter(dists_bottleneck[:,0], dists_bottleneck[:,1], label=\"Bottleneck\", alpha=0.3)\n",
453453
"plt.scatter(dists_sliced[:,0], dists_sliced[:,1], label=\"Sliced Wasserstein\", alpha=0.3)\n",
454-
"plt.legend()"
454+
"plt.legend()\n"
455+
"plt.show()"
455456
]
456457
},
457458
{
@@ -494,11 +495,12 @@
494495
" matching=True\n",
495496
" )\n",
496497
" \n",
497-
" persim.plot.bottleneck_matching(dgm_clean, dgm, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
498+
" persim.bottleneck_matching(dgm_clean, dgm, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
498499
"\n",
499500
" plt.title(\"Noise:{} Distance:{:.3f}\".format(n, d))\n",
500501
"\n",
501-
"plt.tight_layout()"
502+
"plt.tight_layout()\n"
503+
"plt.show()"
502504
]
503505
}
504506
],

0 commit comments

Comments
 (0)