From 576c3d51d689f6ac48f686e8ba001efd20fea422 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 24 Apr 2020 17:07:37 +0200 Subject: better thumbnail image for gallery --- examples/plot_OT_1D.py | 1 + examples/plot_OT_1D_smooth.py | 2 ++ examples/plot_OT_2D_samples.py | 2 ++ examples/plot_OT_L1_vs_L2.py | 2 ++ examples/plot_UOT_barycenter_1D.py | 2 ++ examples/plot_WDA.py | 2 ++ examples/plot_barycenter_1D.py | 2 ++ examples/plot_barycenter_lp_vs_entropic.py | 2 ++ examples/plot_compute_emd.py | 2 ++ examples/plot_fgw.py | 2 ++ examples/plot_optim_OTreg.py | 1 + examples/plot_otda_color_images.py | 2 ++ examples/plot_otda_d2.py | 2 ++ examples/plot_otda_linear_mapping.py | 2 ++ examples/plot_otda_mapping.py | 2 ++ examples/plot_otda_mapping_colors_images.py | 2 ++ examples/plot_otda_semi_supervised.py | 2 ++ examples/plot_partial_wass_and_gromov.py | 2 ++ 18 files changed, 34 insertions(+) (limited to 'examples') 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 # # 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 # 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 -- cgit v1.2.3