summaryrefslogtreecommitdiff
path: root/examples/demo_OT_1D.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo_OT_1D.py')
-rw-r--r--examples/demo_OT_1D.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/demo_OT_1D.py b/examples/demo_OT_1D.py
index accf722..abc851d 100644
--- a/examples/demo_OT_1D.py
+++ b/examples/demo_OT_1D.py
@@ -36,14 +36,14 @@ pl.legend()
#%% plot distributions and loss matrix
pl.figure(2)
-ot.plot.otplot1D(a,b,M,'Cost matrix M')
+ot.plot.plot1D_mat(a,b,M,'Cost matrix M')
#%% EMD
G0=ot.emd(a,b,M)
pl.figure(3)
-ot.plot.otplot1D(a,b,G0,'OT matrix G0')
+ot.plot.plot1D_mat(a,b,G0,'OT matrix G0')
#%% Sinkhorn
@@ -51,4 +51,4 @@ lambd=1e-3
Gs=ot.sinkhorn(a,b,M,lambd)
pl.figure(4)
-ot.plot.otplot1D(a,b,Gs,'OT matrix Sinkhorn')
+ot.plot.plot1D_mat(a,b,Gs,'OT matrix Sinkhorn')