summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2018-02-16 14:11:56 +0100
committerRémi Flamary <remi.flamary@gmail.com>2018-02-16 14:11:56 +0100
commit6355736a274a8e28c8909881b815a66f0a08d906 (patch)
treebdc5ad77d480ee234b6977ef3e3d6de4e7862e96
parentb4665fe3c12780af4228cb1fb7dc8e1159c81f63 (diff)
add proper import for ot.plot in examples
-rw-r--r--examples/plot_OT_1D.py1
-rw-r--r--examples/plot_OT_L1_vs_L2.py1
-rw-r--r--examples/plot_optim_OTreg.py2
-rw-r--r--examples/plot_otda_d2.py2
4 files changed, 4 insertions, 2 deletions
diff --git a/examples/plot_OT_1D.py b/examples/plot_OT_1D.py
index 719058f..90325c9 100644
--- a/examples/plot_OT_1D.py
+++ b/examples/plot_OT_1D.py
@@ -16,6 +16,7 @@ and their visualization.
import numpy as np
import matplotlib.pylab as pl
import ot
+import ot.plot
from ot.datasets import get_1D_gauss as gauss
##############################################################################
diff --git a/examples/plot_OT_L1_vs_L2.py b/examples/plot_OT_L1_vs_L2.py
index 090e809..c1ed226 100644
--- a/examples/plot_OT_L1_vs_L2.py
+++ b/examples/plot_OT_L1_vs_L2.py
@@ -19,6 +19,7 @@ https://arxiv.org/pdf/1706.07650.pdf
import numpy as np
import matplotlib.pylab as pl
import ot
+import ot.plot
##############################################################################
# Dataset 1 : uniform sampling
diff --git a/examples/plot_optim_OTreg.py b/examples/plot_optim_OTreg.py
index e1a737e..92df016 100644
--- a/examples/plot_optim_OTreg.py
+++ b/examples/plot_optim_OTreg.py
@@ -28,7 +28,7 @@ arXiv preprint arXiv:1510.06567.
import numpy as np
import matplotlib.pylab as pl
import ot
-
+import ot.plot
##############################################################################
# Generate data
diff --git a/examples/plot_otda_d2.py b/examples/plot_otda_d2.py
index e53d7d6..70beb35 100644
--- a/examples/plot_otda_d2.py
+++ b/examples/plot_otda_d2.py
@@ -20,7 +20,7 @@ of what the transport methods are doing.
import matplotlib.pylab as pl
import ot
-
+import ot.plot
##############################################################################
# generate data