Skip to content

Commit e11b1d1

Browse files
committed
test plot with no X
1 parent a8d7301 commit e11b1d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/test_plot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11

22

3-
import ot
43
import numpy as np
5-
6-
# import pytest
4+
import matplotlib
5+
matplotlib.use('Agg')
76

87

98
def test_plot1D_mat():
109

10+
import ot
11+
1112
n = 100 # nb bins
1213

1314
# bin positions
@@ -26,6 +27,8 @@ def test_plot1D_mat():
2627

2728
def test_plot2D_samples_mat():
2829

30+
import ot
31+
2932
n = 50 # nb samples
3033

3134
mu_s = np.array([0, 0])

0 commit comments

Comments
 (0)