summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_convolutional_barycenter.rst
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2020-04-20 15:19:09 +0200
committerRémi Flamary <remi.flamary@gmail.com>2020-04-20 15:19:09 +0200
commite65606ae498bd611f6a994868c2a66dfbea403cd (patch)
treeb9b43dcaf8499b6d57b806ce04350fb6b792537f /docs/source/auto_examples/plot_convolutional_barycenter.rst
parent8acaf262baa04a4d2bdd9c774c45c5bb2fb2d12a (diff)
big update examples
Diffstat (limited to 'docs/source/auto_examples/plot_convolutional_barycenter.rst')
-rw-r--r--docs/source/auto_examples/plot_convolutional_barycenter.rst46
1 files changed, 34 insertions, 12 deletions
diff --git a/docs/source/auto_examples/plot_convolutional_barycenter.rst b/docs/source/auto_examples/plot_convolutional_barycenter.rst
index a28db2f..9c9a596 100644
--- a/docs/source/auto_examples/plot_convolutional_barycenter.rst
+++ b/docs/source/auto_examples/plot_convolutional_barycenter.rst
@@ -1,6 +1,12 @@
+.. only:: html
+
+ .. note::
+ :class: sphx-glr-download-link-note
+ Click :ref:`here <sphx_glr_download_auto_examples_plot_convolutional_barycenter.py>` to download the full example code
+ .. rst-class:: sphx-glr-example-title
-.. _sphx_glr_auto_examples_plot_convolutional_barycenter.py:
+ .. _sphx_glr_auto_examples_plot_convolutional_barycenter.py:
============================================
@@ -11,8 +17,7 @@ This example is designed to illustrate how the Convolutional Wasserstein Barycen
function of POT works.
-
-.. code-block:: python
+.. code-block:: default
# Author: Nicolas Courty <ncourty@irisa.fr>
@@ -30,14 +35,14 @@ function of POT works.
+
Data preparation
----------------
The four distributions are constructed from 4 simple images
-
-.. code-block:: python
+.. code-block:: default
@@ -73,13 +78,13 @@ The four distributions are constructed from 4 simple images
+
Barycenter computation and visualization
----------------------------------------
-
-.. code-block:: python
+.. code-block:: default
pl.figure(figsize=(10, 10))
@@ -119,27 +124,44 @@ Barycenter computation and visualization
.. image:: /auto_examples/images/sphx_glr_plot_convolutional_barycenter_001.png
- :align: center
+ :class: sphx-glr-single-img
+
+.. rst-class:: sphx-glr-script-out
+ Out:
+ .. code-block:: none
-**Total running time of the script:** ( 1 minutes 11.608 seconds)
+ /home/rflamary/PYTHON/POT/examples/plot_convolutional_barycenter.py:92: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
+ pl.show()
+
+
+.. rst-class:: sphx-glr-timing
+
+ **Total running time of the script:** ( 0 minutes 34.615 seconds)
+
+
+.. _sphx_glr_download_auto_examples_plot_convolutional_barycenter.py:
+
+
.. only :: html
.. container:: sphx-glr-footer
+ :class: sphx-glr-footer-example
+
- .. container:: sphx-glr-download
+ .. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: plot_convolutional_barycenter.py <plot_convolutional_barycenter.py>`
- .. container:: sphx-glr-download
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download Jupyter notebook: plot_convolutional_barycenter.ipynb <plot_convolutional_barycenter.ipynb>`
@@ -148,4 +170,4 @@ Barycenter computation and visualization
.. rst-class:: sphx-glr-signature
- `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
+ `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_