summaryrefslogtreecommitdiff
path: root/examples/plot_OT_1D.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-09-01 16:28:35 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-09-01 16:28:35 +0200
commit052ccadc5023ec500dc10477821bf0267426aa4f (patch)
tree7deac1febb3c8b8c20be578583c0b326856ee7db /examples/plot_OT_1D.py
parent364a42954f9d2f5c43e7ff53ee0a3b6f9a682e8a (diff)
pep8
Diffstat (limited to 'examples/plot_OT_1D.py')
-rw-r--r--examples/plot_OT_1D.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/plot_OT_1D.py b/examples/plot_OT_1D.py
index a63f29a..b6ffa5f 100644
--- a/examples/plot_OT_1D.py
+++ b/examples/plot_OT_1D.py
@@ -4,7 +4,7 @@
1D optimal transport
====================
-This example illustrates the computation of EMD and Sinkhorn transport plans
+This example illustrates the computation of EMD and Sinkhorn transport plans
and their visualization.
"""
@@ -20,7 +20,8 @@ from ot.datasets import get_1D_gauss as gauss
##############################################################################
# Generate data
-##############################################################################
+# #############
+
#%% parameters
@@ -40,7 +41,7 @@ M /= M.max()
##############################################################################
# Plot distributions and loss matrix
-##############################################################################
+###################################
#%% plot the distributions