Skip to content

Commit 6355736

Browse files
committed
add proper import for ot.plot in examples
1 parent b4665fe commit 6355736

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

examples/plot_OT_1D.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import numpy as np
1717
import matplotlib.pylab as pl
1818
import ot
19+
import ot.plot
1920
from ot.datasets import get_1D_gauss as gauss
2021

2122
##############################################################################

examples/plot_OT_L1_vs_L2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import numpy as np
2020
import matplotlib.pylab as pl
2121
import ot
22+
import ot.plot
2223

2324
##############################################################################
2425
# Dataset 1 : uniform sampling

examples/plot_optim_OTreg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import numpy as np
2929
import matplotlib.pylab as pl
3030
import ot
31-
31+
import ot.plot
3232

3333
##############################################################################
3434
# Generate data

examples/plot_otda_d2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import matplotlib.pylab as pl
2222
import ot
23-
23+
import ot.plot
2424

2525
##############################################################################
2626
# generate data

0 commit comments

Comments
 (0)