summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2020-04-24 17:07:37 +0200
committerRémi Flamary <remi.flamary@gmail.com>2020-04-24 17:07:37 +0200
commit576c3d51d689f6ac48f686e8ba001efd20fea422 (patch)
tree25c42cf88553f851f841d057d3bcff82665a2084 /examples
parent08ec66ede42350dd040b559cca181d2e599c3d2d (diff)
better thumbnail image for gallery
Diffstat (limited to 'examples')
-rw-r--r--examples/plot_OT_1D.py1
-rw-r--r--examples/plot_OT_1D_smooth.py2
-rw-r--r--examples/plot_OT_2D_samples.py2
-rw-r--r--examples/plot_OT_L1_vs_L2.py2
-rw-r--r--examples/plot_UOT_barycenter_1D.py2
-rw-r--r--examples/plot_WDA.py2
-rw-r--r--examples/plot_barycenter_1D.py2
-rw-r--r--examples/plot_barycenter_lp_vs_entropic.py2
-rw-r--r--examples/plot_compute_emd.py2
-rw-r--r--examples/plot_fgw.py2
-rw-r--r--examples/plot_optim_OTreg.py1
-rw-r--r--examples/plot_otda_color_images.py2
-rw-r--r--examples/plot_otda_d2.py2
-rw-r--r--examples/plot_otda_linear_mapping.py2
-rw-r--r--examples/plot_otda_mapping.py2
-rw-r--r--examples/plot_otda_mapping_colors_images.py2
-rw-r--r--examples/plot_otda_semi_supervised.py2
-rwxr-xr-xexamples/plot_partial_wass_and_gromov.py2
18 files changed, 34 insertions, 0 deletions
diff --git a/examples/plot_OT_1D.py b/examples/plot_OT_1D.py
index f33e2a4..15ead96 100644
--- a/examples/plot_OT_1D.py
+++ b/examples/plot_OT_1D.py
@@ -12,6 +12,7 @@ and their visualization.
# Author: Remi Flamary <remi.flamary@unice.fr>
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
import numpy as np
import matplotlib.pylab as pl
diff --git a/examples/plot_OT_1D_smooth.py b/examples/plot_OT_1D_smooth.py
index b690751..75cd295 100644
--- a/examples/plot_OT_1D_smooth.py
+++ b/examples/plot_OT_1D_smooth.py
@@ -13,6 +13,8 @@ and their visualization.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 6
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_OT_2D_samples.py b/examples/plot_OT_2D_samples.py
index 63126ba..1544e82 100644
--- a/examples/plot_OT_2D_samples.py
+++ b/examples/plot_OT_2D_samples.py
@@ -14,6 +14,8 @@ sum of diracs. The OT matrix is plotted with the samples.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 4
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_OT_L1_vs_L2.py b/examples/plot_OT_L1_vs_L2.py
index 37b429f..60353ab 100644
--- a/examples/plot_OT_L1_vs_L2.py
+++ b/examples/plot_OT_L1_vs_L2.py
@@ -16,6 +16,8 @@ https://arxiv.org/pdf/1706.07650.pdf
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_UOT_barycenter_1D.py b/examples/plot_UOT_barycenter_1D.py
index acb5892..931798b 100644
--- a/examples/plot_UOT_barycenter_1D.py
+++ b/examples/plot_UOT_barycenter_1D.py
@@ -16,6 +16,8 @@ as proposed in [10] for Unbalanced inputs.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_WDA.py b/examples/plot_WDA.py
index 93cc237..5e17433 100644
--- a/examples/plot_WDA.py
+++ b/examples/plot_WDA.py
@@ -16,6 +16,8 @@ Wasserstein Discriminant Analysis.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import numpy as np
import matplotlib.pylab as pl
diff --git a/examples/plot_barycenter_1D.py b/examples/plot_barycenter_1D.py
index 6864301..63dc460 100644
--- a/examples/plot_barycenter_1D.py
+++ b/examples/plot_barycenter_1D.py
@@ -18,6 +18,8 @@ SIAM Journal on Scientific Computing, 37(2), A1111-A1138.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 4
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_barycenter_lp_vs_entropic.py b/examples/plot_barycenter_lp_vs_entropic.py
index d7c72d0..57a6bac 100644
--- a/examples/plot_barycenter_lp_vs_entropic.py
+++ b/examples/plot_barycenter_lp_vs_entropic.py
@@ -21,6 +21,8 @@ SIAM Journal on Scientific Computing, 37(2), A1111-A1138.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 4
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_compute_emd.py b/examples/plot_compute_emd.py
index 7ed2b01..3340115 100644
--- a/examples/plot_compute_emd.py
+++ b/examples/plot_compute_emd.py
@@ -14,6 +14,8 @@ ground metrics and plot their values for diffeent distributions.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_fgw.py b/examples/plot_fgw.py
index cfdc33b..73e486e 100644
--- a/examples/plot_fgw.py
+++ b/examples/plot_fgw.py
@@ -17,6 +17,8 @@ This example illustrates the computation of FGW for 1D measures[18].
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
+
import matplotlib.pyplot as pl
import numpy as np
import ot
diff --git a/examples/plot_optim_OTreg.py b/examples/plot_optim_OTreg.py
index 2c58def..51e2fdc 100644
--- a/examples/plot_optim_OTreg.py
+++ b/examples/plot_optim_OTreg.py
@@ -24,6 +24,7 @@ arXiv preprint arXiv:1510.06567.
"""
+# sphinx_gallery_thumbnail_number = 4
import numpy as np
import matplotlib.pylab as pl
diff --git a/examples/plot_otda_color_images.py b/examples/plot_otda_color_images.py
index d9cbd2b..7e0afee 100644
--- a/examples/plot_otda_color_images.py
+++ b/examples/plot_otda_color_images.py
@@ -17,6 +17,8 @@ SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_otda_d2.py b/examples/plot_otda_d2.py
index cf22c2f..f49a570 100644
--- a/examples/plot_otda_d2.py
+++ b/examples/plot_otda_d2.py
@@ -18,6 +18,8 @@ of what the transport methods are doing.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import matplotlib.pylab as pl
import ot
import ot.plot
diff --git a/examples/plot_otda_linear_mapping.py b/examples/plot_otda_linear_mapping.py
index c65bd4f..36ccb56 100644
--- a/examples/plot_otda_linear_mapping.py
+++ b/examples/plot_otda_linear_mapping.py
@@ -12,6 +12,8 @@ Linear OT mapping estimation
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import numpy as np
import pylab as pl
import ot
diff --git a/examples/plot_otda_mapping.py b/examples/plot_otda_mapping.py
index 5880adf..ded2bdf 100644
--- a/examples/plot_otda_mapping.py
+++ b/examples/plot_otda_mapping.py
@@ -18,6 +18,8 @@ a linear or a kernelized mapping as introduced in [8].
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_otda_mapping_colors_images.py b/examples/plot_otda_mapping_colors_images.py
index a0938a0..1276714 100644
--- a/examples/plot_otda_mapping_colors_images.py
+++ b/examples/plot_otda_mapping_colors_images.py
@@ -19,6 +19,8 @@ discrete optimal transport", Neural Information Processing Systems (NIPS), 2016.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
+
import numpy as np
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_otda_semi_supervised.py b/examples/plot_otda_semi_supervised.py
index 8a67720..478c3b8 100644
--- a/examples/plot_otda_semi_supervised.py
+++ b/examples/plot_otda_semi_supervised.py
@@ -18,6 +18,8 @@ of what the transport methods are doing.
#
# License: MIT License
+# sphinx_gallery_thumbnail_number = 3
+
import matplotlib.pylab as pl
import ot
diff --git a/examples/plot_partial_wass_and_gromov.py b/examples/plot_partial_wass_and_gromov.py
index 9f95a70..0c5cbf9 100755
--- a/examples/plot_partial_wass_and_gromov.py
+++ b/examples/plot_partial_wass_and_gromov.py
@@ -11,6 +11,8 @@ distance computation in POT.
# Author: Laetitia Chapel <laetitia.chapel@irisa.fr>
# License: MIT License
+# sphinx_gallery_thumbnail_number = 2
+
# necessary for 3d plot even if not used
from mpl_toolkits.mplot3d import Axes3D # noqa
import scipy as sp