summaryrefslogtreecommitdiff
path: root/examples/demo_OT_2D_samples.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2016-10-24 15:43:37 +0200
committerRémi Flamary <remi.flamary@gmail.com>2016-10-24 15:43:37 +0200
commit6ee839d64d8b0f5f73fd5899032f2ae4bd8a7a51 (patch)
tree90d87db9e3647d2e9434983a10d9e1f0be65c70a /examples/demo_OT_2D_samples.py
parent4cdefdf572e41bc578625da53e82a4c2e455a62e (diff)
change function name on plot
Diffstat (limited to 'examples/demo_OT_2D_samples.py')
-rw-r--r--examples/demo_OT_2D_samples.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo_OT_2D_samples.py b/examples/demo_OT_2D_samples.py
index 2cda92e..f91bbb2 100644
--- a/examples/demo_OT_2D_samples.py
+++ b/examples/demo_OT_2D_samples.py
@@ -53,7 +53,7 @@ pl.imshow(G0,interpolation='nearest')
pl.title('Cost matrix M')
pl.figure(4)
-ot.plot.otplot2D_samples(xs,xt,G0,c=[.5,.5,1])
+ot.plot.plot2D_samples_mat(xs,xt,G0,c=[.5,.5,1])
pl.plot(xs[:,0],xs[:,1],'+b',label='Source samples')
pl.plot(xt[:,0],xt[:,1],'xr',label='Target samples')
pl.legend(loc=0)
@@ -71,7 +71,7 @@ pl.imshow(Gs,interpolation='nearest')
pl.title('Cost matrix M')
pl.figure(6)
-ot.plot.otplot2D_samples(xs,xt,Gs,color=[.5,.5,1])
+ot.plot.plot2D_samples_mat(xs,xt,Gs,color=[.5,.5,1])
pl.plot(xs[:,0],xs[:,1],'+b',label='Source samples')
pl.plot(xt[:,0],xt[:,1],'xr',label='Target samples')
pl.legend(loc=0)