summaryrefslogtreecommitdiff
path: root/test/test_plot.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2018-05-30 09:30:21 +0200
committerRémi Flamary <remi.flamary@gmail.com>2018-05-30 09:30:21 +0200
commit90e42f32bdf0dd06667edaf172c51f4d4fce2c8b (patch)
treef5e4172c035729342ed998263ebba1b92bd7b608 /test/test_plot.py
parent507003fe975c80b069d8527b547f0abc4852d16a (diff)
replace function name tin tests
Diffstat (limited to 'test/test_plot.py')
-rw-r--r--test/test_plot.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_plot.py b/test/test_plot.py
index a50ed14..f77d879 100644
--- a/test/test_plot.py
+++ b/test/test_plot.py
@@ -20,8 +20,8 @@ def test_plot1D_mat():
x = np.arange(n_bins, dtype=np.float64)
# Gaussian distributions
- a = ot.datasets.get_1D_gauss(n_bins, m=20, s=5) # m= mean, s= std
- b = ot.datasets.get_1D_gauss(n_bins, m=60, s=10)
+ a = ot.datasets.make_1D_gauss(n_bins, m=20, s=5) # m= mean, s= std
+ b = ot.datasets.make_1D_gauss(n_bins, m=60, s=10)
# loss matrix
M = ot.dist(x.reshape((n_bins, 1)), x.reshape((n_bins, 1)))
@@ -43,8 +43,8 @@ def test_plot2D_samples_mat():
mu_t = np.array([4, 4])
cov_t = np.array([[1, -.8], [-.8, 1]])
- xs = ot.datasets.get_2D_samples_gauss(n_bins, mu_s, cov_s)
- xt = ot.datasets.get_2D_samples_gauss(n_bins, mu_t, cov_t)
+ xs = ot.datasets.make_2D_samples_gauss(n_bins, mu_s, cov_s)
+ xt = ot.datasets.make_2D_samples_gauss(n_bins, mu_t, cov_t)
G = 1.0 * (np.random.rand(n_bins, n_bins) < 0.01)