diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2018-08-29 14:17:19 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2018-08-29 14:17:19 +0200 |
commit | f51c6ab8c25ee371be23ca1a09cb18aed7732132 (patch) | |
tree | 216148ebdde77353a43e52deb5f6f2c579ab94bb /examples/plot_barycenter_1D.py | |
parent | 1d68c0127cbb6597d685eddfe07aad2a99fc443c (diff) |
update exmaple bary 1D for better notebook
Diffstat (limited to 'examples/plot_barycenter_1D.py')
-rw-r--r-- | examples/plot_barycenter_1D.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/plot_barycenter_1D.py b/examples/plot_barycenter_1D.py index 5ed9f3f..6864301 100644 --- a/examples/plot_barycenter_1D.py +++ b/examples/plot_barycenter_1D.py @@ -25,7 +25,7 @@ import ot from mpl_toolkits.mplot3d import Axes3D # noqa from matplotlib.collections import PolyCollection -# +############################################################################## # Generate data # ------------- @@ -48,7 +48,7 @@ n_distributions = A.shape[1] M = ot.utils.dist0(n) M /= M.max() -# +############################################################################## # Plot data # --------- @@ -60,7 +60,7 @@ for i in range(n_distributions): pl.title('Distributions') pl.tight_layout() -# +############################################################################## # Barycenter computation # ---------------------- @@ -90,7 +90,7 @@ pl.legend() pl.title('Barycenters') pl.tight_layout() -# +############################################################################## # Barycentric interpolation # ------------------------- |