Skip to content

Commit 049ddd6

Browse files
authored
Update distances.ipynb
Fixed functions name up to line 204.
1 parent f4fd945 commit 049ddd6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/notebooks/distances.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"source": [
2121
"import numpy as np\n",
2222
"import persim\n",
23-
"import persim.plot\n",
2423
"import tadasets\n",
2524
"import ripser\n",
2625
"import matplotlib.pyplot as plt"
@@ -98,7 +97,8 @@
9897
}
9998
],
10099
"source": [
101-
"ripser.plot_dgms([dgm_clean, dgm_noisy] , labels=['Clean $H_1$', 'Noisy $H_1$'])"
100+
"persim.plot_diagrams([dgm_clean, dgm_noisy] , labels=['Clean $H_1$', 'Noisy $H_1$'])\n"
101+
"plt.show()"
102102
]
103103
},
104104
{
@@ -136,7 +136,8 @@
136136
}
137137
],
138138
"source": [
139-
"persim.plot.bottleneck_matching(dgm_clean, dgm_noisy, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])"
139+
"persim.bottleneck_matching(dgm_clean, dgm_noisy, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n"
140+
"plt.show()"
140141
]
141142
},
142143
{
@@ -198,7 +199,7 @@
198199
" matching=True\n",
199200
")\n",
200201
"\n",
201-
"persim.plot.bottleneck_matching(dgm1, dgm2, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
202+
"persim.bottleneck_matching(dgm1, dgm2, matching, D, labels=['Clean $H_1$', 'Noisy $H_1$'])\n",
202203
"plt.title(\"Distance {:.3f}\".format(d))\n",
203204
"plt.show()"
204205
]

0 commit comments

Comments
 (0)