summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_otda_mapping_colors_images.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:55:32 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:55:32 +0200
commit8ea3504c3bfe9c9440982f8ad0d172a240d54aff (patch)
tree7e3241cf4d81869610feea53f165407767614846 /docs/source/auto_examples/plot_otda_mapping_colors_images.py
parentfd76b98726b8f22606d93bb24dc539967472f4a0 (diff)
good notebook format generated by sphinx gallery
Diffstat (limited to 'docs/source/auto_examples/plot_otda_mapping_colors_images.py')
-rw-r--r--docs/source/auto_examples/plot_otda_mapping_colors_images.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/source/auto_examples/plot_otda_mapping_colors_images.py b/docs/source/auto_examples/plot_otda_mapping_colors_images.py
index 5590286..5f1e844 100644
--- a/docs/source/auto_examples/plot_otda_mapping_colors_images.py
+++ b/docs/source/auto_examples/plot_otda_mapping_colors_images.py
@@ -45,7 +45,7 @@ def minmax(I):
##############################################################################
# Generate data
-##############################################################################
+# -------------
# Loading images
I1 = ndimage.imread('../data/ocean_day.jpg').astype(np.float64) / 256
@@ -66,7 +66,7 @@ Xt = X2[idx2, :]
##############################################################################
# Domain adaptation for pixel distribution transfer
-##############################################################################
+# -------------------------------------------------
# EMDTransport
ot_emd = ot.da.EMDTransport()
@@ -97,7 +97,7 @@ Image_mapping_gaussian = minmax(mat2im(X1tn, I1.shape))
##############################################################################
# Plot original images
-##############################################################################
+# --------------------
pl.figure(1, figsize=(6.4, 3))
pl.subplot(1, 2, 1)
@@ -114,7 +114,7 @@ pl.tight_layout()
##############################################################################
# Plot pixel values distribution
-##############################################################################
+# ------------------------------
pl.figure(2, figsize=(6.4, 5))
@@ -136,7 +136,7 @@ pl.tight_layout()
##############################################################################
# Plot transformed images
-##############################################################################
+# -----------------------
pl.figure(2, figsize=(10, 5))