summaryrefslogtreecommitdiff
path: root/test/test_plot.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-07-24 17:08:25 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-07-24 17:08:25 +0200
commite11b1d1a77f201896fd3f70bc5b910e99610e951 (patch)
treec7ac84b408b395d4911ef45b81f7cf6b09338e74 /test/test_plot.py
parenta8d7301c132a225b5e4d78cae64683a5e08eae7f (diff)
test plot with no X
Diffstat (limited to 'test/test_plot.py')
-rw-r--r--test/test_plot.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test_plot.py b/test/test_plot.py
index 8916a85..69789fa 100644
--- a/test/test_plot.py
+++ b/test/test_plot.py
@@ -1,13 +1,14 @@
-import ot
import numpy as np
-
-# import pytest
+import matplotlib
+matplotlib.use('Agg')
def test_plot1D_mat():
+ import ot
+
n = 100 # nb bins
# bin positions
@@ -26,6 +27,8 @@ def test_plot1D_mat():
def test_plot2D_samples_mat():
+ import ot
+
n = 50 # nb samples
mu_s = np.array([0, 0])