Skip to content

Commit 74a6d61

Browse files
authored
Merge pull request #47 from scikit-tda/saul/fix-distances-notebook
Restore mystery missing commas is distances notebook
2 parents a1efab4 + 786ff06 commit 74a6d61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/notebooks/distances.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898
],
9999
"source": [
100-
"persim.plot_diagrams([dgm_clean, dgm_noisy] , labels=['Clean $H_1$', 'Noisy $H_1$'])\n"
100+
"persim.plot_diagrams([dgm_clean, dgm_noisy] , labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
101101
"plt.show()"
102102
]
103103
},
@@ -136,7 +136,7 @@
136136
}
137137
],
138138
"source": [
139-
"persim.bottleneck_matching(dgm_clean, dgm_noisy, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n"
139+
"persim.bottleneck_matching(dgm_clean, dgm_noisy, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
140140
"plt.show()"
141141
]
142142
},
@@ -451,7 +451,7 @@
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()\n"
454+
"plt.legend()\n",
455455
"plt.show()"
456456
]
457457
},
@@ -499,7 +499,7 @@
499499
"\n",
500500
" plt.title(\"Noise:{} Distance:{:.3f}\".format(n, d))\n",
501501
"\n",
502-
"plt.tight_layout()\n"
502+
"plt.tight_layout()\n",
503503
"plt.show()"
504504
]
505505
}

0 commit comments

Comments
 (0)